Skip to content

Commit

Permalink
Merge pull request #239 from OdenTakashi/bug/modify_button_bug
Browse files Browse the repository at this point in the history
buttonを押したらsubmitされてしまうバグの修正
  • Loading branch information
OdenTakashi authored Aug 7, 2024
2 parents ed3392a + 9aa3713 commit af374c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/lotteries/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
= form.fields_for :prizes do |prize|
= render 'prize_fields', f: prize

button.w-36.h-10.rounded.py-2.px-2.mt-3.border.border-zinc-400.hover:border-zinc-600
= link_to_add_association '+賞品を追加', form, :prizes, data: { association_insertion_node: '.prizes', association_insertion_method: :append }
.mt-6
= link_to_add_association '+賞品を追加', form, :prizes, data: { association_insertion_node: '.prizes', association_insertion_method: :append }, class: 'w-36 h-10 rounded py-2 px-2 mt-3 border border-zinc-400 hover:border-zinc-600'

ul.flex.justify-center.list-none.my-6
li
Expand Down

0 comments on commit af374c4

Please sign in to comment.