keep element focused when choosing date