tagify icon indicating copy to clipboard operation
tagify copied to clipboard

Cannot place caret before tag when tag is at beginning of a line

Open gabber7 opened this issue 5 years ago • 2 comments

Thanks for providing this great component. It solves a big usability issue I had previously with regular textareas.

Prerequisites

  • [X] I am running the latest version
  • [X] I checked the documentation and found no answer
  • [X] I checked to make sure that this issue has not already been filed

Demo Page

https://codesandbox.io/s/tagify-react-wrapper-oempc https://oempc.csb.app/MixedModeTagify

Aug-12-2020 16-50-22

Explanation

  • What is the expected behavior? Given a line starts with a tag, I expect to be allowed placing the caret at beginning of the line.

  • What is happening instead? The caret jumps to the end of the previous line. Using the keyboard or mouse cursor leads to the same result.

  • What error message are you getting? None

gabber7 avatar Aug 12 '20 14:08 gabber7

I've made a simplified demo of the bug

It's a Chrome bug... Chrome has a multitude of extremely annoying bugs with anything related to contenteditable... it's a big problem.

yairEO avatar Aug 13 '20 12:08 yairEO

I've made a simplified demo of bug

It's a Chrome bug... Chrome has a multitude of extremely annoying bugs with anything related to contenteditable... it's a big problem.

Thank you for taking time to look into this. 🙏

gabber7 avatar Aug 13 '20 13:08 gabber7