diff --git a/src/components/App.tsx b/src/components/App.tsx index fcd0bd15..fd6759fb 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -454,6 +454,7 @@ class App extends React.Component { renderCustomFooter={renderFooter} viewModeEnabled={viewModeEnabled} /> +
{this.state.showStats && ( { @@ -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(); };