# settings_ui: Fix reset to default not clearing focused input fields \(\#59395\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c270e658c54d399f714cc6dece6557fa96079807

Requested commit: c270e658c54d399f714cc6dece6557fa96079807

Commit: c270e658c54d399f714cc6dece6557fa96079807

Tree: 84760eca60f96ea223a9cc4d1923be848520acdc

Author: MartinYe1234

Committer: GitHub

## Message

```
settings_ui: Fix reset to default not clearing focused input fields (#59395)

When a setting was reset to its default while its input field was
focused, the field kept showing the old value. The reconciliation that
syncs the editor with the current setting value now handles cleared
(null/empty) defaults and reconciles focused fields when they have no
unsaved edits, so the field clears as expected.

Release Notes:

- Fixed settings input fields not clearing when a setting was reset to
its default while the field was focused
```

## Parents

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

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