Fix Bug 43332 (#258)

This commit is contained in:
Julia Radzhabova 2019-10-29 15:32:13 +03:00 committed by Alexey Golubev
parent e208538f42
commit fdb4df366d

View file

@ -205,10 +205,15 @@ function clearMenus(isFromInputControl) {
})
}
function toggle() {
$('.dropdown-backdrop').remove();
}
$(document)
.off('keydown.bs.dropdown.data-api')
.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
* */