quill icon indicating copy to clipboard operation
quill copied to clipboard

[iOS] Text prediction selection remains after setting text to empty string

Open dr-zr opened this issue 1 year ago • 0 comments

I'm using Quill (rc5) as a text input component in a chat app. There's a bug on iOS when text prediction is enabled. Namely, the highlighted word for text prediction will remain selected if the user taps a button that calls quill.setText(''). The only fix for now that I've found is to call quill.blur(), however that leads to poor UX since for every sent message the user needs to tap on the editor to retrieve focus and continue writing messages. Did anyone encounter a similar issue. If so, how did you solve it?

Video below:

https://github.com/quilljs/quill/assets/155077894/bf271e00-1366-4d7a-97a2-e425f9b8760e

dr-zr avatar Apr 15 '24 09:04 dr-zr