Skip to content

:confirm option on buttons (button_to, button_tag) not working for me #7

Open
@jotto

Description

@jotto

the :confirm option on buttons isn't working for me, but works for link_to. i can find no evidence of this breaking for others via google so i suspect i might having something else wrong.

<%= button_to "text", "/", :confirm => "are you sure?" %>

yields

<input data-confirm="are you sure?" name="commit" type="submit" />

but line 159 of rails.js

   document.on('click', 'a[data-confirm], a[data-remote], a[data-method]', function(event, link) {

isn't observing any input buttons. adding input[data-confirm] works for me, but is this suppose to be working without that addition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions