Skip to content

Commit

Permalink
Update app/components/queries/sort_by_field_component.html.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Günther <[email protected]>
  • Loading branch information
klaustopher and oliverguenther authored May 16, 2024
1 parent cb1618c commit a092dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/queries/sort_by_field_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= render(Primer::OpenProject::FlexLayout.new(data: { 'test-selector': 'sort-by-field' })) do |flex| %>
<%= render(Primer::OpenProject::FlexLayout.new(test_selector: 'sort-by-field' })) do |flex| %>
<% flex.with_column(flex: 1) do %>
<%#- We are just using the classes of the primer component here, because when using the primer component, we cannot detach the input element from the form %>
<%#- The form="none" adds the input to a nonexistant form (as we do not have one with the ID="none" and thus the fields to not get appended to the query string %>
Expand Down

0 comments on commit a092dfe

Please sign in to comment.