fix #1301 After the change, upper components will not detect the press enter event before the datepicker is closed.