From 3b66ee58ba6434ae1cc35c88141a5d69224c3a54 Mon Sep 17 00:00:00 2001 From: alpadev Date: Thu, 15 Apr 2021 12:02:50 +0200 Subject: [PATCH] fix: clicking an item in navbar dropdown collapses the dropdown in firefox see #33592 --- js/src/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/dropdown.js b/js/src/dropdown.js index ae440e4724e3..1cfde256ef22 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -412,7 +412,7 @@ class Dropdown extends BaseComponent { return } - if (/input|select|textarea|form/i.test(event.target.tagName)) { + if (/input|select|option|textarea|form/i.test(event.target.tagName)) { return } }