Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.96k stars 606 forks source link

Can't select text or double click on the input fields in "Insert Link" modal #1424

Open gpack opened 9 months ago

gpack commented 9 months ago

There's strange behaviour when trying to double click or select text in the input fields for the "Insert Link" modal popup. As soon as you try to highlight any part of the text in the input field, the input keeps losing focus. So if you have a long text or title you can't focus the cursor in the middle or at the end of the text.

This is happening on both Chrome and Firefox. I also am displaying the Trumbowyg editor inside a slide out modal panel (not bootstrap), not sure if this could be causing any issue.

I've implemented the recommended solution in #955, but that only helps with showing the modal popup on top.

To try and reproduce this bug, simply try to insert a link and try double clicking or selecting the entire text in the input fields.

thomasFoglia commented 4 months ago

fixed with : https://github.com/Alex-D/Trumbowyg/issues/955#issuecomment-1465160255