Update textWysiwyg.tsx

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

View File

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