Dialog show / hide effect options do not work!

Dialog show / hide effect options do not work!


Hi there,
I'm getting a problem where the show / hide options on dialog do not
work and actually cause it to bug out. For example, the following code
does not work:
$("#dialog").dialog({
    show: 'drop',
    hide: {effect: 'drop', direction: 'right'},
    modal: true,
    autoOpen: false
});
When the "close" button is clicked, this causes the modal background
to disappear but the dialog box remains on the screen and will not
close.
I need to be able to set effect options such as 'direction'. Is this
not the correct way to do it on dialog boxes?
Thanks!