mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-26 04:21:38 +02:00
[bug] fix non standard event path not working in all browsers
This commit is contained in:
parent
de2a755a23
commit
f5c14c26b2
@ -49,7 +49,8 @@ var dropdown = (function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
documentEvent.clickOut = function() {
|
documentEvent.clickOut = function() {
|
||||||
if (!event.path.includes(_currentFormDropdown)) {
|
var path = event.composedPath();
|
||||||
|
if (!path.includes(_currentFormDropdown)) {
|
||||||
close();
|
close();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user