Skip to content

Commit

Permalink
Fix filtering multi-select fails to deselect options
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Sep 21, 2021
1 parent 20ec04d commit ff3e5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
_deSelect: function(options) {
var widget = this;
options.each(function(i, option) {
widget.element.find('option[value="' + option.value + '"]').removeAttr("selected");
widget.element.find('option[value="' + option.value + '"]').prop('selected', false);
});
$(options).appendTo(this.collection).prop('selected', false);
},
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/rails_admin/ra.nested-form-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
add_button.addClass('add_nested_fields').html(add_button.data('add-label'));
}
field.find('[required]').each(function() {
$(this).removeAttr('required');
$(this).prop('required', false);
});
});
}(jQuery));

0 comments on commit ff3e5e4

Please sign in to comment.