WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
265856
iOS Autocorrect feature doesn't work properly when clearing text with JS
https://bugs.webkit.org/show_bug.cgi?id=265856
Summary
iOS Autocorrect feature doesn't work properly when clearing text with JS
Deniss Kozlovs
Reported
2023-12-05 01:23:14 PST
In a scneario when there is input and button in the form. The button is set to cancel further action upon touchend and clears the input value, the autocorrect hint will not disappear. Tested with iOS 17.1.2 / Safari. Here is the isolated case:
https://codepen.io/mark-tyler/pen/bGzOqdQ
1. Open on Safari on iOS 2. Start typing in the field so that autocorrect hint will appear 3. Press "Submit" Expected: autocorrect hint disappers, as there is no more text to correct Actual: Hint doesnt disappear.
Attachments
Add attachment
proposed patch, testcase, etc.
Deniss Kozlovs
Comment 1
2023-12-05 01:27:56 PST
The 'touchend' handler is implemented to ensure that the keyboard on mobile devices remains visible when pressing the "submit" button, preventing it from hiding and user can type another message.
Radar WebKit Bug Importer
Comment 2
2023-12-12 01:24:14 PST
<
rdar://problem/119543083
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug