diff options
| author | Max Beatty <[email protected]> | 2016-08-04 13:47:30 -0700 |
|---|---|---|
| committer | Max Beatty <[email protected]> | 2016-08-04 13:47:30 -0700 |
| commit | bfa714ae1e91e2f77017d02489cbc39fada032c7 (patch) | |
| tree | 31edfbff98d978a9546ea740e5c0992d263c8692 /js/src/modal.js | |
| parent | 0416f761dddae04a1b4d3ce70afece518330ca4d (diff) | |
| download | bootstrap-bfa714ae1e91e2f77017d02489cbc39fada032c7.tar.xz bootstrap-bfa714ae1e91e2f77017d02489cbc39fada032c7.zip | |
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 9b3a99ddd..fd13a687c 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() } |
