Closed brunomiguelpinto closed 11 months ago
You can add a callback that prevents the dropdown from opening on the select2:opening
event. Like:
var $select = $("select");
$select.on("select2:opening", function (event) {
if ($select.is(":disabled")) {
event.preventDefault();
}
});
It has been working wonderfully for me.
When its disabled, the select2 opens on enter and on space. Can someone help?