Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alisonelizabeth opened this issue Dec 12, 2019 · 0 comments · Fixed by #2642
Closed

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

alisonelizabeth opened this issue Dec 12, 2019 · 0 comments · Fixed by #2642

Comments

@alisonelizabeth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant