From dae9a40c5cb3e28c514935dc08ea4d6868e0c5e2 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 6 Nov 2024 10:55:48 +0100 Subject: [PATCH] fix: the option is mandatory in an enum filter --- app/components/instructeurs/column_filter_value_component.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/instructeurs/column_filter_value_component.rb b/app/components/instructeurs/column_filter_value_component.rb index 0fde78d38..ef83d1aa6 100644 --- a/app/components/instructeurs/column_filter_value_component.rb +++ b/app/components/instructeurs/column_filter_value_component.rb @@ -16,7 +16,8 @@ class Instructeurs::ColumnFilterValueComponent < ApplicationComponent id: 'value', name: "filters[][filter]", class: 'fr-select', - data: { no_autosubmit: true } + data: { no_autosubmit: true }, + required: true else tag.input( class: 'fr-input',