2023-02-01 23:55:09 +01:00
|
|
|
- if @champs.present?
|
|
|
|
= fields_for @champ.input_name, @champ do |form|
|
|
|
|
= turbo_stream.append dom_id(@champ, :rows), render(EditableChamp::RepetitionRowComponent.new(form: form, champ: @champ, row: @champs))
|
2023-02-27 15:33:25 +01:00
|
|
|
- first_champ_id = @champs.map(&:focusable_input_id).compact.first
|
|
|
|
- if first_champ_id
|
|
|
|
= turbo_stream.focus(first_champ_id)
|