As an immediate workaround, you can use something in the following lines to prevent the click event from propagating when the click event is a right-click
Js
$(document).on('click', function(e) {
e.button === 2 && e.stopImmediatePropagation()
})
jQuery Bootstrap.
, , , - , .
Update
- , .
JS
var _clearMenus = $._data(document, "events").click.filter(function (el) {
return el.namespace === 'data-api.dropdown' && el.selector === undefined
})[0].handler;
$(document)
.off('click.data-api.dropdown', _clearMenus)
.on('click.data-api.dropdown', function (e) {
e.button === 2 || _clearMenus()
})
, Bootstrap.