Opened 7 years ago

Closed 7 years ago

#8924 closed bug (invalid)

ui.dialog: focus lost from dialog when opened the second time

Reported by: anuragohri92 Owned by: anuragohri92
Priority: minor Milestone: 1.10.0
Component: ui.dialog Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:

Description

$( "#dialog-form" ).dialog({

autoOpen: false, show: "fade", hide: "fade", height: 300, width: 400, modal: true, buttons: {

"Login": function() {

$("#loginform").submit();

}, Cancel: function() {

$( this ).dialog( "close" );

}

}, close: function() {

allFields.val( "" ).removeClass( "ui-state-error" );

}

}); $("#login").click(function() {

$( "#dialog-form" ).dialog( "open" );

});

The above script should cause a dialog box to fade in when it opens and fade out when it closes. However, if the dialog is opened once and then closed, then opened again, then the dialog does NOT appear, while the screen is greyed out.

Change History (2)

comment:1 Changed 7 years ago by tj.vantoll

Owner: set to anuragohri92
Status: newpending

Hi anuragohri92, thanks for taking the time to contribute to the jQuery UI project. In order to assess your ticket we're going to need a reduced test case showing the issue in the most recent version of jQuery UI. You can use this as a starting point http://jsfiddle.net/tj_vantoll/vwk3D/.

Thanks!

comment:2 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.