[bug] fix non standard event path not working in all browsers

This commit is contained in:
zombieFox 2019-11-25 00:26:28 +00:00
parent de2a755a23
commit f5c14c26b2

View File

@ -49,7 +49,8 @@ var dropdown = (function() {
};
documentEvent.clickOut = function() {
if (!event.path.includes(_currentFormDropdown)) {
var path = event.composedPath();
if (!path.includes(_currentFormDropdown)) {
close();
};
};