An open API service indexing awesome lists of open source software.

https://github.com/tomashubelbauer/contenteditable-focus

Researching a contenteditable focus issue
https://github.com/tomashubelbauer/contenteditable-focus

contenteditable focus

Last synced: 5 months ago
JSON representation

Researching a contenteditable focus issue

Awesome Lists containing this project

README

          

# `contenteditable` Focus

I'm having some problems with `contenteditable` divs and moving focus among them
where the divs are also wrapped in HTML custom elements (which might play a role
or not) and upon moving the focus the caret is lost and the div is not focused
but the element itself seems to be.

This is supposed to repro this behavior so I can isolate it and fix it, but so
far I've not been able to reproduce.

The workaround I found is to click away from the first content editable div to
an area which is not editable and then focus the next div, with this flow, the
focus works as expected.