tagify icon indicating copy to clipboard operation
tagify copied to clipboard

How to insert line breaks into hidden textarea, how to prevent caret jumping to beginning

Open gravitymedianet opened this issue 3 years ago • 1 comments

Hello,

[React wrapper tagify]

  1. Is it possible to keep line breaks? When the onChange event fires, it turns all linebreaks into spaces. Can this be stopped? I am using tags in a body of text that could be several paragraphs.

  2. The caret jumps to the beginning of the tagify field after selecting a tag and hitting enter. How to set the caret at the end?

Thank you

gravitymedianet avatar Feb 25 '21 05:02 gravitymedianet

I don't see this happens in the React demo I've created https://codesandbox.io/s/tagify-react-wrapper-oempc?file=/src/MixedModeTagify.js

I must see your code, this is why I urged developers to prepare a demo page when filing a report

yairEO avatar Feb 25 '21 16:02 yairEO