Opened 8 years ago

Closed 7 years ago

#10707 closed bug (worksforme)

Dialog : checkbox is unchecked when showing Dialog on change event

Reported by: mproulx Owned by: mproulx
Priority: minor Milestone: none
Component: ui.dialog Version: 1.8.24
Keywords: Cc:
Blocked by: Blocking:


On a Change/Click event on a checkbox, if we show a modal Dialog, this causes the checkbox to uncheck.

Ex :

($("myCheckBox").change(function () { /* show modal Dialog */} )

I click on the checkbox, I clearly see the check in it, but then the Dialog shows up and the checkbox is no longer checked.

Very annoying, please fix!

Change History (5)

comment:1 Changed 8 years ago by Scott González

Owner: set to mproulx
Status: newpending

Please provide a reduced test case as requested in the red box. Also note that version 1.8.24 is no longer supported.

comment:2 Changed 8 years ago by mproulx

Status: pendingnew

Sorry, I cannot make JQuery/JqueryUI work in either jsFiddle nor jsbin.

Is it possible to provide you with a ZIP file?

comment:3 Changed 8 years ago by Scott González

Status: newpending

comment:4 Changed 7 years ago by mproulx

Status: pendingnew

The problem occurs when listening to the click/change event on a checkbox then showing a modal dialog.

I want to show you a test case, but modal (from dialog) function doesn't work in JSFiddle :

nor in JSBin :

comment:5 Changed 7 years ago by Scott González

Resolution: worksforme
Status: newclosed

It works just fine (and so does the checkbox functionality):

Note: See TracTickets for help on using tickets.