Bug Tracker

Opened 15 years ago

Closed 15 years ago

#3077 closed bug (invalid)

Toggle on checkboxes

Reported by: ThrushAAX Owned by:
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


Unexpectedly when a checkbox has a .toggle() bound to it the state will not change after its callback function is completed. The state will change within the callback function but it will not be saved.

Example Code:

function() {


A <input type="checkbox"> true
B <input type="checkbox"> true

If this is intentional it should probably be documented.

Change History (2)

comment:1 Changed 15 years ago by ThrushAAX

and I can't believe I selected 1.2.5 instead of 1.2.6 ...

comment:2 Changed 15 years ago by flesler

Component: coreevent
Resolution: invalid
Status: newclosed

Because toggle() calls e.preventDefault() which prevents the click from executing. Use the events mouseenter and mouseleave instead.

Note: See TracTickets for help on using tickets.