Response title
This is preview!
When using the JQueryUI dialog with the hide option added, the close event never fires. See my fiddle below to repro both ways.
Is there a workaround that I'm not aware of? I tried reordering them, but it didn't work. Any ideas?
http://jsfiddle.net/johntrepreneur/f4Ytr/3/
JAVASCRIPT (used for fiddle):
var $dialog = $('<div></div>').html('Using the hide dialog option ' + 'prevents the close event from firing. Clicking close does ' + 'nothing. Try commenting out the javascript line with the ' + 'hide effect to see the alert show up after clicking close.' ).dialog({ close: function () { alert('this will never show if hide option is active'); }, //hide: { effect: 'drop', direction: 'up' } //comment out to see alert show up }); $dialog.dialog('open');
© 2013 jQuery Foundation
Sponsored by and others.