Inline date picker won't close