LibWeb: Don't move focus when setting input value

This commit is contained in:
Gingeh 2024-09-10 11:28:44 +10:00 committed by Jelle Raaijmakers
commit 1d9c404b8c
Notes: github-actions[bot] 2024-09-12 09:46:32 +00:00
7 changed files with 59 additions and 26 deletions

View file

@ -4,11 +4,16 @@ date-input selectionStart: null selectionEnd: null selectionDirection: null
textarea selectionStart: 0 selectionEnd: 0 selectionDirection: none
text-input selectionStart: 18 selectionEnd: 18 selectionDirection: none
date input setting selectionStart error: InvalidStateError: setSelectionStart does not apply to this input type
select event fired: 0 18
text-input selectionStart: 0 selectionEnd: 18 selectionDirection: none
select event fired: 2 4
text-input selectionStart: 2 selectionEnd: 4 selectionDirection: forward
select event fired: 1 4
text-input selectionStart: 1 selectionEnd: 4 selectionDirection: forward
select event fired: 1 5
text-input selectionStart: 1 selectionEnd: 5 selectionDirection: forward
select event fired: 6 6
text-input selectionStart: 6 selectionEnd: 6 selectionDirection: forward
select event fired: 6 6
text-input selectionStart: 6 selectionEnd: 6 selectionDirection: backward
textarea selectionStart: 0 selectionEnd: 9 selectionDirection: none
select event fired: 9 9