Do not focus on input if search disabled

Self-fork of pull-request 1436 for Chosen