fix(wysiwyg): Implement programmatic rendering to eliminate focus loss during typing
- Convert parent component to use static rendering with programmatic DOM manipulation - Remove all reactive state that could trigger re-renders during editing - Delay content sync to avoid interference with typing (2s auto-save) - Update all block operations to use manual DOM updates instead of Lit re-renders - Fix specific issue where typing + arrow keys caused focus loss - Add comprehensive focus management documentation
This commit is contained in:
3
ts_web/elements/wysiwyg/instructions.md
Normal file
3
ts_web/elements/wysiwyg/instructions.md
Normal file
@ -0,0 +1,3 @@
|
||||
* We don't use lit template logic, but use static`` here to handle dom operations ourselves
|
||||
* We try to have separated concerns in different classes
|
||||
* We try to have clean concise and managable code
|
Reference in New Issue
Block a user