1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 14:46:34 +02:00

prevent navigating to area href when modal target. fixes #18796

This commit is contained in:
Max Beatty
2016-08-04 13:47:30 -07:00
parent 0416f761dd
commit bfa714ae1e
2 changed files with 23 additions and 1 deletions

View File

@@ -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()
}