New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX][DX] Change the weight field in the taxonomy term form to a number field #3592
Comments
...we also have a So question is do we want this field to be limited to a specific set of weights, or leave it as |
This looks okay to me. It seems to limit it to the number of terms. So with 4 terms it goes from minus to plus four. |
Sorry, what? I don't understand this, but it sounds like something that we should fix. @jenlampton is of the opinion that we should change this to
What do you think @herbdool? ...others? |
@klonos seems like by design to me. It also works that way without this PR. I don't know if I even tested this in the right place. It's not clear from the description. |
OK, so changing Adding milestone tag for 1.12.6 |
The scope of backdrop/backdrop#2535 is limited and does exactly one thing (changing textfield to number) and doesn't get into the general weight field problems of #3626. I've merged the PR into 1.x and 1.12.x. Thanks @klonos and @herbdool! |
This is currently a text field, so we also need a
is_numeric()
check intaxonomy_form_term_validate()
to make sure there is no wrong input.If this was a proper number field, then the user could use their keyboard up/down key to change, and there would also be no need for the check in the form validation function. Less code/complexity++ 😄
PR by @klonos: backdrop/backdrop#2535
The text was updated successfully, but these errors were encountered: