From a092dfeaa3585433a8c4c7aefb786e56b73bb7f4 Mon Sep 17 00:00:00 2001 From: Klaus Zanders Date: Thu, 16 May 2024 18:21:19 +0200 Subject: [PATCH] Update app/components/queries/sort_by_field_component.html.erb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Oliver Günther --- app/components/queries/sort_by_field_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/queries/sort_by_field_component.html.erb b/app/components/queries/sort_by_field_component.html.erb index 87ab4b986300..2e353bb75036 100644 --- a/app/components/queries/sort_by_field_component.html.erb +++ b/app/components/queries/sort_by_field_component.html.erb @@ -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 %>