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 b09f770 commit 26b4d15Copy full SHA for 26b4d15
src/rails_admin/filtering-select.js
@@ -294,10 +294,12 @@ import I18n from "./i18n";
294
};
295
},
296
297
- destroy: function () {
+ destroy: function (isDefault=true) {
298
this.input.remove();
299
this.button.remove();
300
- this.element.html($('<option value="" selected="selected"></option>'));
+ if (isDefault) {
301
+ this.element.html($('<option value="" selected="selected"></option>'));
302
+ }
303
this.element.show();
304
this.filtering_select.remove();
305
$.Widget.prototype.destroy.call(this);
0 commit comments