Update textWysiwyg.tsx

This commit is contained in:
zsviczian 2022-03-13 23:36:05 +01:00 committed by GitHub
parent 994f2a3f1e
commit 326da61573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;