diff options
author | Max Beatty <max@beatty.me> | 2016-08-04 23:47:30 +0300 |
---|---|---|
committer | Max Beatty <max@beatty.me> | 2016-08-04 23:47:30 +0300 |
commit | bfa714ae1e91e2f77017d02489cbc39fada032c7 (patch) | |
tree | 31edfbff98d978a9546ea740e5c0992d263c8692 /js/src/modal.js | |
parent | 0416f761dddae04a1b4d3ce70afece518330ca4d (diff) |
prevent navigating to area href when modal target. fixes #18796
Diffstat (limited to 'js/src/modal.js')
-rw-r--r-- | js/src/modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index 9b3a99ddd7..fd13a687cb 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -491,7 +491,7 @@ const Modal = (($) => { let config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data()) - if (this.tagName === 'A') { + if (this.tagName === 'A' || this.tagName === 'AREA') { event.preventDefault() } |