Fix Bug 43332 (#258)
This commit is contained in:
parent
e208538f42
commit
fdb4df366d
|
@ -205,10 +205,15 @@ function clearMenus(isFromInputControl) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggle() {
|
||||||
|
$('.dropdown-backdrop').remove();
|
||||||
|
}
|
||||||
|
|
||||||
$(document)
|
$(document)
|
||||||
.off('keydown.bs.dropdown.data-api')
|
.off('keydown.bs.dropdown.data-api')
|
||||||
.on('keydown.bs.dropdown.data-api', '[data-toggle=dropdown], [role=menu]' , onDropDownKeyDown);
|
.on('keydown.bs.dropdown.data-api', '[data-toggle=dropdown], [role=menu]' , onDropDownKeyDown);
|
||||||
|
|
||||||
|
('ontouchstart' in document.documentElement) && $(document).on('click.bs.dropdown.data-api', '[data-toggle=dropdown]', toggle);
|
||||||
/*
|
/*
|
||||||
* workaround closing menu by right click
|
* workaround closing menu by right click
|
||||||
* */
|
* */
|
||||||
|
|
Loading…
Reference in a new issue