Fix: closeOnSelect not working when item is already selected.