# ui_input: Don’t focus previous on decrement in \`NumberField\` \(\#41095\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/762082b15aef40421a958a04234abacf9f18738f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 762082b15aef40421a958a04234abacf9f18738f

Requested commit: 762082b15aef40421a958a04234abacf9f18738f

Commit: 762082b15aef40421a958a04234abacf9f18738f

Tree: c6a6908ee42fde381274ea4a52f9f10fec0c79f4

Author: ToBinio

Committer: GitHub

## Message

```
ui_input: Don’t focus previous on decrement in `NumberField` (#41095)

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
```

## Parents

- [fcd690d04c03d04e16cb5bc744624c45547118ce](https://git.cafe/gitcafe/zed/commit/fcd690d04c03d04e16cb5bc744624c45547118ce?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/762082b15aef40421a958a04234abacf9f18738f?format=markdown)
