From ab92c0d6030846361bfc1095ddbbd5e138c2de06 Mon Sep 17 00:00:00 2001 From: jipexu Date: Wed, 22 Jun 2022 18:34:22 +0200 Subject: [PATCH] Update src/ol/events/condition.js writing for ts Co-authored-by: M393 <56256405+M393@users.noreply.github.com> --- src/ol/events/condition.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/events/condition.js b/src/ol/events/condition.js index 28ca1da8fd..1bf9d1ca56 100644 --- a/src/ol/events/condition.js +++ b/src/ol/events/condition.js @@ -254,6 +254,9 @@ export const targetNotEditable = function (mapBrowserEvent) { tagName !== 'INPUT' && tagName !== 'SELECT' && tagName !== 'TEXTAREA' && + // `isContentEditable` is only available on `HTMLElement`, but it may also be a + // different type like `SVGElement`. + // @ts-ignore !originalEvent.target.isContentEditable ); };