We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76765ce commit 064a5b9Copy full SHA for 064a5b9
app/assets/javascripts/active_admin/searchable_select/init.js
@@ -6,6 +6,11 @@
6
// reading from data allows <input data-searchable_select='{"tags": ['some']}'>
7
// to be passed to select2
8
var options = $.extend(extra || {}, item.data('searchableSelect'));
9
+
10
+ // default option allow clear
11
+ if (options.allowClear != undefined)
12
+ options.allowClear: true
13
14
var url = item.data('ajaxUrl');
15
16
if (url) {
@@ -43,4 +48,4 @@
43
48
$(function() {
44
49
initSearchableSelects($(".searchable-select-input"));
45
50
});
46
-}());
51
+}());
0 commit comments