mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 10:13:13 +00:00
fixed dropdown toggling on IE10+
This commit is contained in:
parent
cd481f8eee
commit
b11b6a0731
1 changed files with 3 additions and 3 deletions
|
|
@ -82,9 +82,9 @@ $(function() {
|
|||
});
|
||||
|
||||
/* close all dropdowns on body clicks */
|
||||
$(document).on('click', function(e) {
|
||||
var relTarg = e.relatedTarget || e.toElement;
|
||||
if(!$(relTarg).hasClass('dropdown-toggle') && !$(relTarg).closest('.dropdown').length){
|
||||
$(document).on('click', function(e){
|
||||
var targ = e.target;
|
||||
if(!$(targ).hasClass('dropdown-toggle') && !$(targ).closest('.dropdown').length){
|
||||
$('.dropdown').removeClass('open');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue