fix(conditional): do not display empty div for invisible champs
This commit is contained in:
parent
975baf5460
commit
daa839ca82
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
- splitted_tail.each do |section, champ|
|
||||
- if section.present?
|
||||
= render section
|
||||
- else
|
||||
- elsif champ.visible?
|
||||
= fields_for champ.input_name, champ do |form|
|
||||
.fr-fieldset__element
|
||||
= render EditableChamp::EditableChampComponent.new form:, champ:
|
||||
|
@ -18,7 +18,7 @@
|
|||
- splitted_tail.each do |section, champ|
|
||||
- if section.present?
|
||||
= render section
|
||||
- else
|
||||
- elsif champ.visible?
|
||||
= fields_for champ.input_name, champ do |form|
|
||||
.fr-fieldset__element
|
||||
= render EditableChamp::EditableChampComponent.new form:, champ:
|
||||
|
|
Loading…
Reference in a new issue