Inputs within Fixed Position Wrappers Unfocusable - Can't Type, Copy, or Select Text in Textareas & Inputs - Certain Scenarios
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
People
(Reporter: earnolmartin, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Updated•8 years ago
|
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 13•7 years ago
|
||
| Reporter | ||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
| Reporter | ||
Comment 16•7 years ago
|
||
OK, I finally figured this out. The problem appears to deal with the tabindex attribute set to "-1" to prevent elements outside of a modal from being focused. This was done on purpose by the author of Magnific Popup:
https://github.com/dimsemenov/Magnific-Popup/issues/340
As one user points out though, it might not be needed, as it causes problems in Firefox:
https://github.com/dimsemenov/Magnific-Popup/issues/340#issuecomment-462848080
The Firefox handling of the tabindex property causes problems in certain cases. An example is in the case I reported initially. In the initial bug I reported, the z-index content is covering other elements that have their tabindex attribute set to "-1". Another case is that content rendered outside of tabindex="-1" content cannot be interacted with or focused even though the z-index is greater than the element set with the tabindex of "-1". Try to change the year in this jQuery UI datepicker select:
http://jsfiddle.net/betfoz8j/4/
Should I report another bug with this information? I believe the title for this bug should be "tabindex, z-index, layering / covering, and focus issues in different scenarios".
I believe tabindex should be respected, but content with a higher z-index should be focusable regardless of any element's tabindex setting if the z-index value is higher than the original tabindex element.
A lot of plugins render elements in absolutely positioned containers outside of the original elements, and this causes problems in Firefox. So, the spec may need to be edited because it appears to be broken.
| Reporter | ||
Comment 17•7 years ago
|
||
OK, I finally figured this out. The problem appears to deal with the tabindex attribute set to "-1" to prevent elements outside of a modal from being focused. This was done on purpose by the author of Magnific Popup:
https://github.com/dimsemenov/Magnific-Popup/issues/340
As one user points out though, it might not be needed, as it causes problems in Firefox:
https://github.com/dimsemenov/Magnific-Popup/issues/340#issuecomment-462848080
The Firefox handling of the tabindex property causes problems in certain cases. An example is in the case I reported initially. In the initial bug I reported, the z-index content is covering other elements that have their tabindex attribute set to "-1". Another case is that content rendered outside of tabindex="-1" content cannot be interacted with or focused even though the z-index is greater than the element set with the tabindex of "-1". Try to change the year in this jQuery UI datepicker select:
http://jsfiddle.net/betfoz8j/4/
It will not work in Firefox, but it does work in Chrome
Should I report another bug with this information? I believe the title for this bug should be "tabindex, z-index, layering / covering, and focus issues in different scenarios".
I believe tabindex should be respected, but content with a higher z-index should be focusable regardless of any element's tabindex setting if the z-index value is higher than the original tabindex element.
A lot of plugins render elements in absolutely positioned containers outside of the original elements, and this causes problems in Firefox. So, the spec may need to be edited (if there is one) because it appears to be broken.
| Reporter | ||
Comment 18•7 years ago
|
||
Sorry for the duplicate comment... can't seem to change the first one... I second comment is the one I want people to read.
| Assignee | ||
Updated•7 years ago
|
Updated•3 years ago
|
Description
•