fix the picker not being closed when clicking away.