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 b1a4928 commit 3bd7ca0Copy full SHA for 3bd7ca0
app/assets/javascripts/active_admin/searchable_select/init.js
@@ -7,7 +7,10 @@
7
// to be passed to select2
8
var options = $.extend(extra || {}, item.data('searchableSelect'));
9
10
- // default option allow clear
+ // default option allow clear (must have placeholder and allowClear to options)
11
+ if (options.placeholder == undefined)
12
+ options.placeholder = '';
13
+
14
if (options.allowClear == undefined)
15
options.allowClear = true;
16
0 commit comments