Skip to content

Commit

Permalink
Fix Filetering Select Picklist overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
upendra-azad committed Nov 19, 2024
1 parent b09f770 commit 2dceb62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rails_admin/filtering-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ import I18n from "./i18n";
};
},

destroy: function () {
destroy: function (isDefault = true) {
this.input.remove();
this.button.remove();
this.element.html($('<option value="" selected="selected"></option>'));
if (isDefault) {
this.element.html($('<option value="" selected="selected"></option>'));
}
this.element.show();
this.filtering_select.remove();
$.Widget.prototype.destroy.call(this);
Expand Down

0 comments on commit 2dceb62

Please sign in to comment.