Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari/Chrome selection issue inside shadow dom #1449

Open
tamirgold95 opened this issue Feb 25, 2024 · 2 comments
Open

Safari/Chrome selection issue inside shadow dom #1449

tamirgold95 opened this issue Feb 25, 2024 · 2 comments

Comments

@tamirgold95
Copy link

tamirgold95 commented Feb 25, 2024

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

ProseMirror/prosemirror-view@64a96e5

@marijnh
Copy link
Member

marijnh commented Apr 8, 2024

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

@peka2
Copy link

peka2 commented Apr 9, 2024

I tested with 1.33.4 and it still occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants