You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracked down the source of this issue to this PR #3926 . I cannot reproduce the error without compat. Delaying the value setting in afterEvent by delaying it by another Promise tick seems to resolve it. Not sure if this is the proper fix though.
Describe the bug
A clear and concise description of what the bug is.
After upgrading to Preact 10.14.0, for controlled text inputs, the selection is reset in certain cases.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
What should have happened when following the steps above?
The "a" should be deleted leaving "bc" but with the text selection in front of "bc".
Actual behavior
"a" is deleted leaving "bc" but the cursor is moved to after "bc".
Tested with Firefox and Chrome on Windows. This did not happen with 10.13.2.
The text was updated successfully, but these errors were encountered: