Skip to content

TomasHubelbauer/contenteditable-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.