fix(repetition): prevent rage clicks on add row button
This commit is contained in:
parent
a8dcf934f8
commit
f9a8fb4ada
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
Supprimer l’élément
|
||||
|
||||
- if champ.persisted?
|
||||
= link_to champs_repetition_path(form.index), class: 'button add-row', data: { remote: true, method: 'POST', params: { champ_id: champ&.id }.to_query } do
|
||||
= link_to champs_repetition_path(form.index), class: 'button add-row', data: { remote: true, disable: true, method: 'POST', params: { champ_id: champ&.id }.to_query } do
|
||||
%span.icon.add
|
||||
Ajouter un élément pour « #{champ.libelle} »
|
||||
- else
|
||||
|
|
Loading…
Reference in a new issue