Safari/Chrome selection issue inside shadow dom #1449

Open
opened 2024-02-25 10:38:49 +01:00 by tamirgold95 · 2 comments
tamirgold95 commented 2024-02-25 10:38:49 +01:00 (Migrated from github.com)

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).

  1. When typing using Japanese characters, the entire comment is constantly selected which can cause some problems.

Steps to reproduce:

  1. On Safari IOS try to type in Japanese.
  2. If you select a predictive text and then continue typing, it will remove all your text.
    OR
  3. 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

github.com/ProseMirror/prosemirror-view@64a96e51be

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). 1. When typing using Japanese characters, the entire comment is constantly selected which can cause some problems. **Steps to reproduce:** 1. On Safari IOS try to type in Japanese. 2. If you select a predictive text and then continue typing, it will remove all your text. OR 3. 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 https://github.com/ProseMirror/prosemirror-view/commit/64a96e51be902fdcd96d210cf0241293750b16f1
marijnh commented 2024-04-08 10:18:12 +02:00 (Migrated from github.com)

prosemirror-view 1.33.4 might help with this. Could you give it a try?

prosemirror-view 1.33.4 might help with this. Could you give it a try?
peka2 commented 2024-04-09 14:51:41 +02:00 (Migrated from github.com)

I tested with 1.33.4 and it still occurs.

I tested with 1.33.4 and it still occurs.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror#1449
No description provided.