]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Merge branch 'v4-dev-18796' of https://github.com/maxbeatty/bootstrap into maxbeatty...
authorMark Otto <markdotto@gmail.com>
Sat, 26 Nov 2016 08:58:51 +0000 (00:58 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 26 Nov 2016 08:58:51 +0000 (00:58 -0800)
1  2 
js/src/modal.js
js/tests/unit/modal.js

diff --cc js/src/modal.js
index 5c2c0208aa13440f9c30ab1bf4552210e062c252,fd13a687cb40da6ee7d68216eabb3770e274c463..447e32acfe373d12b2d6ec7230a9b36683450ca4
@@@ -486,10 -488,10 +486,10 @@@ const Modal = (($) => 
        target = $(selector)[0]
      }
  
 -    let config = $(target).data(DATA_KEY) ?
 +    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()
      }
  
Simple merge