Fix focus condition

This commit is contained in:
Andreas Hocevar
2020-04-06 11:57:10 +02:00
parent ced59f5592
commit 4330697ed2

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);
};