ShadowDom form elements are considered for preventing scrolling by keyevent
This commit is contained in:
parent
abab1e47a4
commit
a573d2cd9d
@ -431,7 +431,16 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hovered || $(document.activeElement).is(":input,[contenteditable]")) {
|
||||
if (!hovered) {
|
||||
return;
|
||||
}
|
||||
|
||||
var activeElement = document.activeElement;
|
||||
// go deeper if element is a webcomponent
|
||||
while (activeElement.shadowRoot) {
|
||||
activeElement = activeElement.shadowRoot.activeElement;
|
||||
}
|
||||
if ($(activeElement).is(":input,[contenteditable]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user