Update condition.js
This commit is contained in:
committed by
Maximilian Krög
parent
f353d52da3
commit
f2f9f68840
@@ -85,7 +85,7 @@ export const altShiftKeysOnly = function (mapBrowserEvent) {
|
|||||||
export const focus = function (event) {
|
export const focus = function (event) {
|
||||||
const targetElement = event.map.getTargetElement();
|
const targetElement = event.map.getTargetElement();
|
||||||
return targetElement.contains(
|
return targetElement.contains(
|
||||||
/** @type {Document} */ (targetElement.getRootNode({composed: true}))
|
/** @type {Document} */ (event.map.getOwnerDocument())
|
||||||
.activeElement
|
.activeElement
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user