Update src/ol/events/condition.js
writing for ts Co-authored-by: M393 <56256405+M393@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user