]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix backdrop for dropdown menu on mobile (#21578)
authorPierre Vanduynslager <pierre.denis.vanduynslager@gmail.com>
Sun, 19 Mar 2017 00:41:13 +0000 (20:41 -0400)
committerMark Otto <markd.otto@gmail.com>
Sun, 19 Mar 2017 00:41:13 +0000 (17:41 -0700)
commitf2f805128508e82f0adc6e57b421dfb46d65a434
treef09c68d3ad52e8d60c83335a3c2f388ae9d517fd
parent5a5ab4c0de0981680fa1764e33967c8d3d4cacf5
Fix backdrop for dropdown menu on mobile (#21578)

- Create backdrop only if the menu is actually open (do not create it if the show event is prevented)
- Drop the backdrop only when the corresponding menu is closed (do not remove if there is no menu to close or if the hide event is prevented)
js/src/dropdown.js