For some reason when rendering delete button with a content different from simple text it stop working.
Working example:
<%= dynamic_delete_button(class: "text-gray-400 hover:text-gray-700") do %>
delete
<% end %>
Not working example:
<%= dynamic_delete_button(class: "text-gray-400 hover:text-gray-700") do %>
<div>delete</div>
<% end %>
I found this because I was trying to rendering a icon inside the button and it stop working. Probably related with JS selectors in the code?
Didn't test but probably the same is happening with the add button. The same problem is happening to the add button too.
For some reason when rendering delete button with a content different from simple text it stop working.
Working example:
Not working example:
I found this because I was trying to rendering a icon inside the button and it stop working. Probably related with JS selectors in the code?
Didn't test but probably the same is happening with the add button.The same problem is happening to the add button too.