Commit 41a9dec
committed
fix(editor): prevent focus loss when typing in header/footer editors (SD-1993)
Replace unconditional appendChild calls in DomPainter.updateVirtualWindow()
with cursor-based DOM reconciliation that skips moves for elements already
in the correct position. Add focus save/restore safety net in
PresentationEditor.#flushRerenderQueue for edge cases.1 parent 17117aa commit 41a9dec
2 files changed
Lines changed: 35 additions & 3 deletions
File tree
- packages
- layout-engine/painters/dom/src
- super-editor/src/core/presentation-editor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
1712 | | - | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1713 | 1717 | | |
| 1718 | + | |
1714 | 1719 | | |
1715 | 1720 | | |
1716 | 1721 | | |
| |||
1721 | 1726 | | |
1722 | 1727 | | |
1723 | 1728 | | |
1724 | | - | |
| 1729 | + | |
1725 | 1730 | | |
1726 | 1731 | | |
1727 | | - | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1728 | 1739 | | |
1729 | 1740 | | |
1730 | 1741 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3165 | 3165 | | |
3166 | 3166 | | |
3167 | 3167 | | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
3168 | 3176 | | |
3169 | 3177 | | |
3170 | 3178 | | |
3171 | 3179 | | |
3172 | 3180 | | |
3173 | 3181 | | |
3174 | 3182 | | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
3175 | 3196 | | |
3176 | 3197 | | |
3177 | 3198 | | |
| |||
0 commit comments