Skip to content

Delete button not clickable when content is different from text #7

@jfcalvo

Description

@jfcalvo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions