fix not using className when querying container (#1420)

This commit is contained in:
David Luzar 2020-04-13 17:29:11 +02:00 committed by GitHub
parent 0e94303791
commit 692ceece65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ export function textWysiwyg({
const onPointerDown = (event: MouseEvent) => {
if (
event.target instanceof HTMLElement &&
event.target.closest(CLASSES.SHAPE_ACTIONS_MENU) &&
event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) &&
!isWritableElement(event.target)
) {
editable.onblur = null;