fix preventOutline for nested elements, close #3606
This commit is contained in:
parent
cdb9ce0beb
commit
bf234810f0
@ -221,6 +221,10 @@ L.DomUtil = {
|
||||
};
|
||||
|
||||
L.DomUtil.preventOutline = function (element) {
|
||||
while (element.tabIndex === -1) {
|
||||
element = element.parentNode;
|
||||
}
|
||||
if (!element) { return; }
|
||||
L.DomUtil.restoreOutline();
|
||||
this._outlineElement = element;
|
||||
this._outlineStyle = element.style.outline;
|
||||
|
Loading…
Reference in New Issue
Block a user