From f5c14c26b2202b2a57a1278af1011dcc0949a522 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Mon, 25 Nov 2019 00:26:28 +0000 Subject: [PATCH] [bug] fix non standard event path not working in all browsers --- src/js/dropdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/dropdown.js b/src/js/dropdown.js index 4433dfd6..8316623a 100644 --- a/src/js/dropdown.js +++ b/src/js/dropdown.js @@ -49,7 +49,8 @@ var dropdown = (function() { }; documentEvent.clickOut = function() { - if (!event.path.includes(_currentFormDropdown)) { + var path = event.composedPath(); + if (!path.includes(_currentFormDropdown)) { close(); }; };