jQuery UI Modal Dialogs not compatible with .input-prepend & .input-append
See original GitHub issueYeah, I know…weird, right?
It’s for real though: http://jsfiddle.net/QNxPE/
The problem seems to be related to this set of styles:
.input-prepend input:focus,
.input-append input:focus,
.input-prepend .uneditable-input:focus,
.input-append .uneditable-input:focus {
position: relative;
z-index: 2;
}
Changing that to position:inherit
fixed the issue. I’m not sure what the motivation of position: relative
(or the z-index: 2
) here is, so I’m submitting this rather than a patch request.
At any rate, the position:inherit
thing seems to fix it.
Issue Analytics
- State:
- Created 12 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
jQuery UI modal dialog captures all keypress so I can't input ...
jQuery UI modal dialog captures all keypress so I can't input text inside it - Stack Overflow. Stack Overflow for Teams – Start...
Read more >วิธีแก้ jQuery UI Dialog พิมพ์ข้อความลงใน input prepend append ...
input-append textarea, .input-append .uneditable-input { font-size: 14px !important; } .input-append input:focus, .input-prepend input:focus, .
Read more >Dialog Widget | jQuery UI API Documentation
A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and...
Read more >Solved: jQuery Modal Dialog Box Not Rendering Consistently
Solved: I have created a modal dialog box for the [institution's Canvas domain]/accounts/ page that provides a UI for selecting reporting ...
Read more >dialog widget not working after jquery ui upgarde to 1.10.3
I am having hard time making dialog box render properly after jquery ui upgrade (dialog moving to top corner instead of center, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
looks like it has something to do with the input z-index. When you call:
$(‘.ui-dialog-content input:visible’).css(‘z-index’,9999);
after dialog-open, it seems to fix it!