Opened 9 years ago

Closed 8 years ago

#7763 closed bug (wontfix)

zIndex > 999999 and modal = true "disables" checkboxes in FF

Reported by: sebeers Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.16
Keywords: modal Cc:
Blocked by: Blocking:

Description

In FireFox only, combining modal = true with zIndex > 999999 virtually disables checkboxes appearing inside the dialog - i.e. they always return to their prior state when clicked.

Demo: http://jsfiddle.net/FFtVC/ (Note difference in change handler execution)

Occurs under Windows XP, Windows Vista, Windows 7 with FF versions 6.0.2 and 5.0.1

Change History (5)

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

Keywords: modal added

comment:2 Changed 8 years ago by maciejmrozinski

Opera 12.00 and IE 8 works well (IE fires change event first, then click, but this doesn't matter), so it must be FF related problem. I also noticed that this bug doesn't affect only checkboxes, but normal inputs too. I think it will be problem with all type of inputs and maybe other tags. Forked demo with input here: http://jsfiddle.net/AEYHV/1/

comment:3 Changed 8 years ago by maciejmrozinski

this ticket is related to #7107 or even duplicates it

comment:4 Changed 8 years ago by maciejmrozinski

This is not jQuery UI bug, it's not even jQuery bug. Native Firefox getComputedStyle() function (which jQuery uses to get css values when possible) returns bad values. Big numbers like > 1000000 will be affected with bad calculated value (this ticket) and even greater numbers like 2147483583 will be returned in bad notation (ticket #7107). If we read zIndex from native style object of element we will get good values. This is possible fix for jQuery. I will try to commit it in jQuery repo.

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

Resolution: wontfix
Status: newclosed

What maciejmrozinski said. Also that value is insanely high, you should use sane values for z-index.

Note: See TracTickets for help on using tickets.