Merge pull request #10893 from ahocevar/fix-focus-condition

Fix focus condition
This commit is contained in:
Andreas Hocevar
2020-04-06 15:30:39 +02:00
committed by GitHub

View File

@@ -58,7 +58,7 @@ export const altShiftKeysOnly = function(mapBrowserEvent) {
* @api
*/
export const focus = function(event) {
return event.target.getTargetElement() === document.activeElement;
return event.target.getTargetElement().contains(document.activeElement);
};