Skip to content

[ComboBox] Unexpected behavior when using combobox inside form #2637

@alisonelizabeth

Description

@alisonelizabeth

I’m running into an issue with the EuiComboBox inside a <form>, where if I hit “enter” to select an option, it also tries to submit the form.

I believe this section of code needs to be updated to also call e.preventDefault() https://github.com/elastic/eui/blob/master/src/components/combo_box/combo_box.js#L389

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions