mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: incorrect z-index of text editor (#2914)
This commit is contained in:
parent
bd0c6e63ff
commit
e18e945cd3
2 changed files with 5 additions and 2 deletions
|
@ -160,7 +160,7 @@ export const textWysiwyg = ({
|
|||
|
||||
unbindUpdate();
|
||||
|
||||
document.body.removeChild(editable);
|
||||
editable.remove();
|
||||
};
|
||||
|
||||
const rebindBlur = () => {
|
||||
|
@ -206,7 +206,9 @@ export const textWysiwyg = ({
|
|||
passive: false,
|
||||
capture: true,
|
||||
});
|
||||
document.body.appendChild(editable);
|
||||
document
|
||||
.querySelector(".excalidraw-textEditorContainer")!
|
||||
.appendChild(editable);
|
||||
editable.focus();
|
||||
editable.select();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue