Update src/ol/events/condition.js

writing for ts

Co-authored-by: M393 <56256405+M393@users.noreply.github.com>
This commit is contained in:
jipexu
2022-06-22 18:34:22 +02:00
committed by GitHub
parent c7a2f06acc
commit ab92c0d603

View File

@@ -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
);
};