aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authoralpadev <[email protected]>2021-04-18 08:01:23 +0200
committerGitHub <[email protected]>2021-04-18 09:01:23 +0300
commit6d312b37c264ac1e4ac244674e6fe700e75f6aa2 (patch)
tree4d3b7802d9235b7335e63dd8b93ed840964fc995 /js/src/dropdown.js
parent7eadf73f03eeb51160a455c6438a9ec16ad107a4 (diff)
downloadbootstrap-6d312b37c264ac1e4ac244674e6fe700e75f6aa2.tar.xz
bootstrap-6d312b37c264ac1e4ac244674e6fe700e75f6aa2.zip
fix: clicking an item in navbar dropdown collapses the dropdown in firefox (#33643)
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index c314cbcdd..2fc2cde21 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -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
}
}