bug: Input doesn't reset the cursor position after getting emptied by setValue
#35
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
The previous position of the
Input's cursor is maintained when asetValuecall is followed by asetFocuscall, even when the input is empty.Minimal Working Example
https://user-images.githubusercontent.com/43142209/196984044-1d5109b7-6ca2-4bff-bf01-b1cfcb68fbf4.mp4
Steps to reproduce the behavior:
Inputinput:setValue('')input:setFocus()Expected behavior
The cursor would return to the rightmost side of the input.
Checklist
[x] I am running the latest version.
Can reproduce! 👍
After my small amount of testing, it seems this was fixed in
3dcdcfd383.