Skip to content

hx-confirm on checkbox should not alter the checkbox state #3360

Open
@mariusGundersen

Description

@mariusGundersen

Given the following:

<input type="checkbox" role="switch" hx-post="/enabled" hx-confirm="Are you sure you want to enable?">

If you click cancel on the confirm the checkbox still changes state, but no ajax request is triggered. Instead it should leave the checkbox unchecked (or checked, if it was initially checked) when the user cancels the confirm dialog.

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