Safari/Chrome selection issue inside shadow dom
tamirgold95 opened this issue · comments
I have an issue while using Prosemirror on Safari/Chrome inside Shadow Dom using IOS while typing in Japanese (and other similar languages like Chinese, Korean, and Thai).
- When typing using Japanese characters, the entire comment is constantly selected which can cause some problems.
Steps to reproduce:
- On Safari IOS try to type in Japanese.
- If you select a predictive text and then continue typing, it will remove all your text.
OR - When clicking the “Return” button instead of just adding a new line it will replace the current text.
Expected result:
the text shouldn't be selected.
Actual result:
comment text is selected on IOS.
Platform : Safari IOS
maybe it's related to the dependencies of prosemirror-state , it uses some old version of prosemirror-view (1.27.0), i think that an version update will solve this.
some discussion regarding wired behavior of selection in safari where discussed before
prosemirror-view 1.33.4 might help with this. Could you give it a try?
I tested with 1.33.4 and it still occurs.