Skip to content

Commit f5c14c2

Browse files
committed
[bug] fix non standard event path not working in all browsers
1 parent de2a755 commit f5c14c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/js/dropdown.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ var dropdown = (function(){
4949
};
5050

5151
documentEvent.clickOut=function(){
52-
if(!event.path.includes(_currentFormDropdown)){
52+
varpath=event.composedPath();
53+
if(!path.includes(_currentFormDropdown)){
5354
close();
5455
};
5556
};

0 commit comments

Comments
(0)