Skip to content

[EuiComboBox] Steels key events of form #4273

@timroes

Description

@timroes

When putting EuiComboBox into a form with other input elements, the combo box somehow triggers when you hit Enter in another input box (and thus trigger the submit event on the form) will somehow capture that event and delete it's first pill inside.

Steps to reproduce:

  1. Visit this codesandbox
  2. Select elements in the combo box on the bottom
  3. Type something into the text field on top
  4. Hit Enter while still focused on the text box

What happens? The first pill will just vanish and the combo box will focus.

What should happen? The onSubmit handler of the form should be triggered, the combo box should not react at all.

Peek 2020-11-16 21-53

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions