Merge pull request #10893 from ahocevar/fix-focus-condition
Fix focus condition
This commit is contained in:
@@ -58,7 +58,7 @@ export const altShiftKeysOnly = function(mapBrowserEvent) {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
export const focus = function(event) {
|
export const focus = function(event) {
|
||||||
return event.target.getTargetElement() === document.activeElement;
|
return event.target.getTargetElement().contains(document.activeElement);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user