Skip to content

Commit b666c63

Browse files
authored
Reset polymorphic id upon type change (#3630)
1 parent 9ea46b1 commit b666c63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rails_admin/widgets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ import I18n from "./i18n";
258258
"options"
259259
);
260260
object_select.data("options", selected_data);
261+
object_select.val('');
261262
object_select.filteringSelect("destroy");
262263
object_select.filteringSelect(selected_data);
263264
});

0 commit comments

Comments
 (0)