]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix: clicking an item in navbar dropdown collapses the dropdown in firefox (#33643)
authoralpadev <2838324+alpadev@users.noreply.github.com>
Sun, 18 Apr 2021 06:01:23 +0000 (08:01 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Apr 2021 06:01:23 +0000 (09:01 +0300)
js/src/dropdown.js

index c314cbcddfbc448bbd041fc8e3a9fa3dd070dc4c..2fc2cde21bf0a0009ab5b67e376dcc6faf3a0577 100644 (file)
@@ -415,7 +415,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
       }
     }