2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03: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
+1 -1
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()
}