Datepicker pops up on dialog open - help!

Datepicker pops up on dialog open - help!


I've got a datepicker field that is inside of a dialog. When the
dialog opens the focus is set to the datepicker field and opens
automatically. I've found that if I move the datepicker field to the
bottom of the form this no longer happens, or if I set the showOn:
'button' option on the datepicker field I am able to make the
datepicker remain hidden when the dialog opens.
I really don't want to move the date picker field or require the user
to click on a button to make the calendar appear - is there any other
way to get this to work?