ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
26.6k stars 2.23k forks source link

Freeze in Safari when `user-select` / `-webkit-user-select` is set to `none`. #2853

Open steveruizok opened 2 years ago

steveruizok commented 2 years ago

What’s the bug you are facing?

In Safari, when user-select is set to false, the editor will freeze.

Which browser was this experienced in? Are any special extensions installed?

Safari, Version 15.4 (17613.1.17.1.13) iOS Safari (iOS 15)

How can we reproduce the bug on our side?

Set the container's user-select to false. A user will be able to type one character before being unable to continue.

Can you provide a CodeSandbox?

https://codesandbox.io/s/tiptap-react-forked-j4enol

What did you expect to happen?

Similar behavior to chrome: either user-select is ignored (by forcing it on the underlying element) or the field is read only.

Anything to add? (optional)

No response

Did you update your dependencies?

Are you sponsoring us?

puopg commented 2 years ago

I think this is an issue with content-editable on webkit browsers. A little google search shows a bunch of posts related. Perhaps it would be a good idea to document Safari and other browser quirks somewhere?

bdbch commented 2 years ago

Could this be related to this issue? https://bugs.webkit.org/show_bug.cgi?id=202262

bdbch commented 2 years ago

If this is related to the linked bug on webkit, we could write it down somewhere in the documentation, yes!

piggmme commented 1 year ago

I also experienced the same problem with wkwebview in versions below ios16. So I removed the user-select: none css value and the problem was solved. For those experiencing the same problem, please remove user-select: none or overwrite user-select: auto.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

bdbch commented 1 year ago

bump