Skip to main content

Search and Top Navigation

#10707 closed bug (worksforme)

Opened November 24, 2014 05:16PM UTC

Closed November 25, 2014 09:32PM UTC

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!

Attachments (0)
Change History (5)

Changed November 24, 2014 05:19PM UTC by scottgonzalez comment:1

owner: → 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.

Changed November 24, 2014 06:29PM UTC by mproulx comment:2

status: pendingnew

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

Is it possible to provide you with a ZIP file?

Changed November 24, 2014 06:43PM UTC by scottgonzalez comment:3

status: newpending

Changed November 25, 2014 09:10PM UTC by mproulx comment:4

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 :

Changed November 25, 2014 09:32PM UTC by scottgonzalez comment:5

resolution: → worksforme
status: newclosed

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