-
Notifications
You must be signed in to change notification settings - Fork 638
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Unless I am mistaken when an input field has an autofocus attribute, Choices does not autofocus to this field. Probably because the autofocus remains on the hidden field
Describe the solution you'd like
I see two options
- detect the
autofocusattribute and forward it to the choices input - add a new option
shouldFocus
Describe alternatives you've considered
Currently, I have a workaround using a callback in callbackOnInit
callbackOnInit: function () {
this.input.focus()
}This is a simpler version of what I am using since typically I can have multiple fields on my page with only one being autofocused. So there is a need for additional logic. This is where having this as an option or directly compatible with the autofocus attribute would be very nice
stevebauman and AngelFFlores