Fix: Input search field should not grab focus if search is disabled

This was part of
Adds `autofocusInputOnOpen` option
pull request by @geordanr but splited up because that is not part of a new feature but a bug fix