Select2: Set closeOnSelect for event selection

This commit is contained in:
Raphael Michel
2024-03-08 10:08:44 +01:00
parent f7dfd51c2c
commit b6461e9303

View File

@@ -625,6 +625,7 @@ var form_handlers = function (el) {
el.find('[data-model-select2=event]').each(function () {
var $s = $(this);
$s.select2({
closeOnSelect: !this.hasAttribute('multiple'),
theme: "bootstrap",
delay: 100,
allowClear: !$s.prop("required"),