ignite-ui
ignite-ui copied to clipboard
igHTMLEditor: copy pasting loses focus
Description
I have some logic to change some styles when user copy paste inside editor. and because of this I lose focus and have to click inside the editor to see the cursor. I have attached the sample code. I have also tried some solutions I found online, but nothing works.
Here is the link for online solution I found. I have also added that in my code to test it out https://stackoverflow.com/questions/1181700/set-cursor-position-on-contenteditable-div followed the ans with 101 ratings
- ignite-ui version: 21.2.9
- browser: any
Steps to reproduce
- Step 1 run the code
- Step 2 copy paste any content from any document
Result
losing focus and have to click inside editor if wants to type anything
Expected result
the focus should remain inside editor
Attachments
Attach a sample if available, and screenshots, if applicable.
focusIssue.zip