Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Incorrect state when preventting default behavior on checkboxes, radios #366

@ucavus

Description

@ucavus

An example of the behaviour. You should be able to cancel the checking of a box or a radio, e.g. after an "are you sure?" confirmation. The underlying form control behaves correctly but the uniform's interface shows the opposite state.

I have been able to work around this by manually changing the checked property of an element and running $.uniform.update(), but this seems a bit clunky.

Perhaps the bound click event could bind another temporary handler, using one() with the same event.type. It would then run after other attached handlers that may call preventDefault(). If the handler is not run because of another handler or returning false or calling stopImmediatePropagation(). The temporary handler could be unbound with the next click on the element, or the entire document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions