# Category name too long, even when i make it shorter again

**URL:** <https://meta.discourse.org/t/category-name-too-long-even-when-i-make-it-shorter-again/204679>\
**Category:** Bug\
**Created:** [September 28, 2021, 7:51pm UTC](https://meta.discourse.org/t/category-name-too-long-even-when-i-make-it-shorter-again/204679 "2021-09-28T19:51:54Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

A bug is reported regarding category name length validation logic. [Meteor0id](/t/-/204679/1) observed that if a category name is entered one character too long, the create button becomes disabled. However, even after shortening the name to the correct length, the button remains greyed out until several additional characters are removed. [sam](/t/-/204679/2) requested exact reproduction steps. [Meteor0id](/t/-/204679/3) clarified the issue: after shortening a long name until the button activates, adding one or two characters back does not disable the button again, indicating the validation state is not updating correctly when the input length fluctuates near the limit.

<div class="post-metadata">

**Author:** ![Meteor0id](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meteor0id/32/177297_2.png) [@Meteor0id](https://meta.discourse.org/u/Meteor0id)\
**Post date:** [September 28, 2021, 7:51pm UTC](https://meta.discourse.org/t/category-name-too-long-even-when-i-make-it-shorter-again/204679/1 "2021-09-28T19:51:54Z")

</div>

I noticed that if I type a category name which is one char too long and then remove 1 char, I can still not create the category. I have to remove a few more chat before the create button is clickable again.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [September 29, 2021, 6:39am UTC](https://meta.discourse.org/t/category-name-too-long-even-when-i-make-it-shorter-again/204679/2 "2021-09-29T06:39:05Z")

</div>

Hmmm … what is the exact repro here?

---

<div class="post-metadata">

**Author:** ![Meteor0id](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meteor0id/32/177297_2.png) [@Meteor0id](https://meta.discourse.org/u/Meteor0id)\
**Post date:** [September 29, 2021, 7:56am UTC](https://meta.discourse.org/t/category-name-too-long-even-when-i-make-it-shorter-again/204679/3 "2021-09-29T07:56:14Z")

</div>

Make a new caregory  
Type a log name for it  
The create button is grey  
Shorten the name just a bit  
Tge create button is still grey  
Shorten until the create button is normal  
Now add one or two more carscters again  
The create button is still normal
