-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
- Check if updating to the latest Preact version resolves the issue (no)
Describe the bug
Up to preact v10.11.0 changes in the DOM did not cause a focused input to lose focus. Starting with v10.11.1 the input loses focus.
To Reproduce
Steps to reproduce the behavior:
- Check out https://github.com/jcestibariz/bug-preact-focus
- Notice preact is locked to v10.11.0 which does not contain the bug
- Run
npm i
and thennpm start
- In the browser click on the input and press backspace
- Notice the last "tag" is removed but the input keeps focus.
- Go back to the console and press Ctrl+C to stop the server
- Run
npm i preact@10.11.1
and thennpm start
- Go back to the browser and repeat step 4
- Notice now the input loses focus
- You can also check with the latest version (v10.11.3 as of this moment) the bug is still present
Expected behavior
The input should not lose focus when DOM changes.
Metadata
Metadata
Assignees
Labels
No labels