Skip to content

Commit

Permalink
Explicitly set the value to the hidden input
Browse files Browse the repository at this point in the history
Otherwise there's no way to clear the input during advanced edit
  • Loading branch information
jimsafley committed Nov 26, 2024
1 parent e755edf commit fcc8f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/js/query-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(document).ready(function () {
$.get(`${url}?${query}`, function(data) {
selectingElement.find('.query-form-search-filters').html(data);
});
selectingElement.find('.query-form-query').prop('type', 'hidden');
selectingElement.find('.query-form-query').prop('type', 'hidden').val(query);
show('.query-form-edit');
show('.query-form-advanced-edit-show');
hide('.query-form-advanced-edit-apply');
Expand Down

0 comments on commit fcc8f6b

Please sign in to comment.