Improve targetNotEditable documentation

This commit is contained in:
Maximilian Krög
2022-07-07 01:14:46 +02:00
parent e7a545233b
commit c2d609c60a

View File

@@ -238,8 +238,9 @@ export const shiftKeyOnly = function (mapBrowserEvent) {
};
/**
* Return `true` if the target element is not editable, i.e. not an `<input>`,
* `<select>`, or `<textarea>` element and no `contenteditable` attribut. `false` otherwise.
* Return `true` if the target element is not editable, i.e. not an `input`,
* `select`, or `textarea` element and no `contenteditable` attribute is
* set or inherited, `false` otherwise.
*
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} True only if the target element is not editable.