aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dropdown.js2
-rw-r--r--js/src/modal.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 324eef793..8b2164aa9 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -239,7 +239,7 @@ const Dropdown = (($) => {
return
}
- let items = $(parent).find(Selector.VISIBLE_ITEMS).get()
+ const items = $(parent).find(Selector.VISIBLE_ITEMS).get()
if (!items.length) {
return
diff --git a/js/src/modal.js b/js/src/modal.js
index 5c2c0208a..447e32acf 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -489,7 +489,7 @@ const Modal = (($) => {
const config = $(target).data(DATA_KEY) ?
'toggle' : $.extend({}, $(target).data(), $(this).data())
- if (this.tagName === 'A') {
+ if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault()
}