Merge pull request #7609 from betagouv/fix-repetable-input-width

fix: drop down other input width
This commit is contained in:
Colin Darie 2022-07-25 14:47:56 +02:00 committed by GitHub
commit 316effff40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@ class RootController < ApplicationController
-- avant l'option C --
option C"
champ.value = '["option B", "option C"]'
champ.type_de_champ.drop_down_other = "1"
end
end

View file

@ -1,4 +1,4 @@
.drop_down_other{ class: champ.other_value_present? ? '' : 'hidden' }
.notice
%p Veuillez saisir votre autre choix
= form.text_field :value_other, maxlength: "200", placeholder: "Saisissez ici", disabled: !champ.other_value_present?
= form.text_field :value_other, maxlength: 200, size: nil, disabled: !champ.other_value_present?