Fix default button type (#3925)

Usager : les bloc répétables ne disparaissent plus lorsqu'on appuie sur la touche Entrée dans un champ
This commit is contained in:
Pierre de La Morinerie 2019-06-04 18:08:24 +02:00 committed by GitHub
commit edbfd4e2b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
= form.hidden_field :_destroy, disabled: true = form.hidden_field :_destroy, disabled: true
.flex.row-reverse .flex.row-reverse
- if champ.persisted? - if champ.persisted?
%button.button.danger.remove-row %button.button.danger.remove-row{ type: :button }
Supprimer Supprimer
- else - else
%button.button.danger{ type: :button } %button.button.danger{ type: :button }