focus the input before hiding the picker to avoid its reopening