fix for autoclose on date fields