Skip to content

Commit

Permalink
Reset polymorphic id upon type change (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
KMinChrist authored Aug 25, 2024
1 parent 9ea46b1 commit b666c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rails_admin/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ import I18n from "./i18n";
"options"
);
object_select.data("options", selected_data);
object_select.val('');
object_select.filteringSelect("destroy");
object_select.filteringSelect(selected_data);
});
Expand Down

0 comments on commit b666c63

Please sign in to comment.