-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Advanced Search Close better Dirty Check (#945)
* chore: update close in advanced search to check if the form is dirty e.g. modified before confirming close * chore: change dirty method to be private and add in a test case where just the field was changed
- Loading branch information
Showing
3 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/components/previews/advanced_search_component_preview/default.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%= form_with model: search, url: "#", data: { controller: "advanced-search" } do |form| %> | ||
<%= form_with model: search, scope: :q, url: "#" do |form| %> | ||
<%= render AdvancedSearchComponent.new(search:, form:, fields:, operations:) %> | ||
<% end %> |