Skip to content

Conversation

@ToBinio
Copy link
Contributor

@ToBinio ToBinio commented Oct 24, 2025

This PR removes the behavior that the number_field changes focus to the previous element when using the decrement button.

I mainly noticed this while decreasing the tab-size of a language, since it there closes the page...

Please note that I am unsure what if any purpose this code has.
I was unable to find a use case and since it is not present in the increment_handler I guess it should never have been here


Release Notes:

  • Fixed wrongly focus previous element on number_field decrement
@cla-bot
Copy link

cla-bot bot commented Oct 24, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @ToBinio on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@ToBinio
Copy link
Contributor Author

ToBinio commented Oct 24, 2025

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 24, 2025
@cla-bot
Copy link

cla-bot bot commented Oct 24, 2025

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title fix(number_field): dont focus previous on decrement Oct 24, 2025
Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, this makes sense; thank you! Congrats on the first PR 😄

@danilo-leal danilo-leal enabled auto-merge (squash) October 24, 2025 13:51
@zed-industries-bot

This comment was marked as resolved.

1 similar comment
@zed-industries-bot

This comment was marked as duplicate.

@danilo-leal danilo-leal merged commit 762082b into zed-industries:main Oct 24, 2025
23 checks passed
@ToBinio ToBinio deleted the number-field-keep-focus branch October 24, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

3 participants