Skip to content

Commit

Permalink
Fix clear button. Refs #107
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Jun 28, 2024
1 parent b559f65 commit 5f2966c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ function dismissRelatedLookupPopup(win, chosenId) {
$('.dynamic_raw_id-clear-field').click(function() {
const $this = $(this);
$this
.closest('.vForeignKeyRawIdAdminField, .vManyToManyRawIdAdminField')
.parent()
.find('.vForeignKeyRawIdAdminField, .vManyToManyRawIdAdminField')
.val('')
.trigger('change');

Expand Down

0 comments on commit 5f2966c

Please sign in to comment.