Skip to content

preventAutoFocus: 'true' does not work when hideUserInputOnNoneTextInput is also 'true' #332

@jerrebm

Description

@jerrebm

I noticed the following issue:

When both of preventAutoFocus and hideUserInputOnNoneTextInput are set to true, cf will still autofocus on the first option if the input is a none text input. For now, I'm using the follow code as a workaround:

dispatcher.addEventListener(UserInputEvents.CONTROL_ELEMENTS_ADDED, function(event) {
     document.activeElement.blur();
}, false);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions