Bug 265856
Summary: | iOS Autocorrect feature doesn't work properly when clearing text with JS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Deniss Kozlovs <deniss> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | akeerthi, cdumez, megan_gardner, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 17 |
Deniss Kozlovs
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
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
<rdar://problem/119543083>