Update textWysiwyg.tsx

This commit is contained in:
zsviczian
2022-03-13 23:36:05 +01:00
committed by GitHub
parent 994f2a3f1e
commit 326da61573

View File

@@ -551,7 +551,10 @@ export const textWysiwyg = ({
setTimeout(() => {
editable.onblur = () => {
app.setState({
toastMessage: "debug: " + target?.tagName ?? "no tagName",
toastMessage: "debug: " +
target instanceof HTMLElement
? target.tagName ?? "no tagName"
: "not an HTMLElement",
});
if (isShapeActionsPanel) {
return;