Fixes flaw in JS, custom dropdowns now focus when invalid
This commit is contained in:
parent
6363205f34
commit
b37ba3ccfd
|
|
@ -51,9 +51,14 @@
|
|||
formatSelection: formatSelectOption,
|
||||
escapeMarkup: function(m) { return m; }
|
||||
})
|
||||
|
||||
$(document).on('disable', 'select.custom-select', function(event, status){
|
||||
$(this).select2('enable', !status)
|
||||
})
|
||||
})
|
||||
|
||||
$(document).on('disable', 'select.custom-select', function(event, status){
|
||||
$(this).select2('enable', !status)
|
||||
})
|
||||
|
||||
$(document).on('focus', 'select.custom-select', function(event){
|
||||
setTimeout($.proxy(function() { $(this).select2('focus') }, this), 10)
|
||||
})
|
||||
|
||||
})(jQuery);
|
||||
Loading…
Reference in New Issue