Datepicker popup not closing when clicking on a second datepicker control.

Datepicker popup not closing when clicking on a second datepicker control.


We have got a number of pages which contain more than one datepicker
control (a textbox with calendar button).
If you click on the calendar button alongside the textbox the calendar
is displayed correctly but if you click on one of the other datepicker
textboxes it stays open. I don't think this is correct because
selecting a date using the calendar updates the control which
originally displayed it. I have had a look at the code in version
1.6rc4 (I think its the same in the latest) and the problem seems to
be in the _checkExternalClick function. It's checking to see if the
newly focused control has a class of $.datepicker.markerClassName. I
don't think this is correct. Just because it's marked as a datepicker
control does not mean the original calendar should stay open ... or am
I being dim?