JQuery Dialog Confirm (modal) - Tabbing broken?
When a modal dialog confirm box is brought up and you tab through the elements, it goes to the "X" and the "Ok" and "Cancel" then seems to get lost somewhere on the parent page in the background.
This seems to be the case in IE7 and Chrome. However, in Forefox it seems to work with tabbing just cycling around the 3 elements of the dialog box.
My dialog code (although I don't think my code is up the creek):
- $("#dialog_confirm").dialog({
- autoOpen:false,
- resizable: false,
- height:180,
- modal: true,
- buttons: {
- Ok: function() {
- $(this).dialog('close');
- doMyThing();
- $('form').submit();
- },
- Cancel: function() {
- $(this).dialog('close');
- }
- }
- });
I see there is a bug raised stating that this happens in IE8 too. Not a big issue I guess as you can still press Esc to get back to parent page and resume tabbing. But, it is an issue none the less, especially as it seems to work in FF but nothing else.
Any ideas?