question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jQuery UI Modal Dialogs not compatible with .input-prepend & .input-append

See original GitHub issue

Yeah, 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:closed
  • Created 12 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nuckzcommented, Jun 22, 2012

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!

0reactions
psecretcommented, Jan 29, 2013
$dialog.dialog({
    open:function () {
        $(this).find('.input-append input:focus, .input-prepend input:focus')
            .css('z-index', parseInt($(this).closest('.ui-dialog').css('z-index')), 'important')
            .css('font-size', '14px', 'important');
    }
});
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found