Opened 13 years ago

Closed 11 years ago

#6267 closed bug (fixed)

Dialog: checkboxes that inherit a z-index < jqueryui.dialog z-index don't work

Reported by: prinzdezibel Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.dialog Version: 1.8.6
Keywords: modal Cc:
Blocked by: Blocking:

Description

  1. A dialog with form input elements, specifically a checkbox input.
  2. The checkbox is wrapped in a div which is positioned absolute and has a z-index smaller than the dialog's z-index.
  3. The checkbox can't be clicked, because the event will not bubble up so the browser can handle it.

The source code responsible for this is: jquery.ui.dialog.js, Line 705

if ($(event.target).zIndex() < $.ui.dialog.overlay.maxZ) { return false; }

Here is a working sample. Be sure to include jquery UI 1.8.0

http://jsbin.com/ilofi3/5/edit

Best regards, prinz

Change History (6)

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

Keywords: modal added; checkbox z-index removed

comment:2 Changed 11 years ago by braddunbar

I am also having this problem (in IE8-). IE appears to misreport the z-index as .

Version 1, edited 11 years ago by braddunbar (previous) (next) (diff)

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

Milestone: TBD1.10.0

comment:4 Changed 11 years ago by tj.vantoll

Status: newopen

comment:5 Changed 11 years ago by Jörn Zaefferer

Summary: checkboxes that inherit a z-index < jqueryui.dialog z-index don't workDialog: checkboxes that inherit a z-index < jqueryui.dialog z-index don't work

comment:6 Changed 11 years ago by Nate Eagle

Resolution: fixed
Status: openclosed

Dialog: Awesome new stacking and overlay implementation. Fixes the following tickets:

Fixes #3534 - Dialog: Modal dialog disables all input elements on page. Fixes #4671 - Dialog: Modal Dialog disables vertical scroll bar in Chrome & Safari. Fixes #4995 - Dialog: Modal Dialog's overlay dissapears in IE when content is tall. Fixes #5388 - Dialog: Don't change z-index when already at the top. Fixes #5466 - Dialog: "modal" Dialog Incorrectly Cancels Input Events. Fixes #5762 - Dialog: Get rid of z-index workaround, document it instead. Fixes #6267 - Dialog: checkboxes that inherit a z-index < jqueryui.dialog z-index don't work. Fixes #7051 - Dialog: modal prevents tab key from moving focus off slider handle. Fixes #7107 - Dialog: Modal dialog event loss with high zindex child elements (FF 3.6). Fixes #7120 - Dialog: Modal operation interrupts drag drop marker functionality on gmaps. Fixes #8172 - Dialog: Change event cancelled when opening modal dialog from another modal dialog. Fixes #8583 - Dialog: Mouse event wrongly stopped. Fixes #8722 - Dialog: Remove stack option. Fixes #8729 - Dialog: Remove zIndex option.

Changeset: 3829a37ca122e923c3a08b964c4b1a946a2a1456

Note: See TracTickets for help on using tickets.