Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit f5c14c2

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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+
var path = event.composedPath();
53+
if (!path.includes(_currentFormDropdown)) {
5354
close();
5455
};
5556
};

0 commit comments

Comments
 (0)