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

Submit form on enter bug #403

Open
WindRider7 opened this issue Oct 19, 2018 · 3 comments
Open

Submit form on enter bug #403

WindRider7 opened this issue Oct 19, 2018 · 3 comments

Comments

@WindRider7
Copy link

WindRider7 commented Oct 19, 2018

Short description

When I type string that cannot be found in autocomplete I have to press Enter 2 times to submit the form (onKeyPress triggered only for second Enter).

Expected results

Keyboard Enter should submit form if suggestions are hidden.

Actual results

Form is submitted only when you press Enter second time.

Reproduction steps

  1. Type 'fdslPFWLfl,fwWEGRPL,dw,lwPWELFw' in autocomplete

  2. Press Enter

  3. Form is not submitted

  4. Type 8 spaces in autocomplete

  5. Press Enter

  6. Form is not submitted

Additional Information

Ones you pressed Enter 2 times, you can press Enter only 1 time for submission, but if you modify the string, the double Enter behaviour will repeat.

Example: https://codesandbox.io/s/l4z199z459
Related Issue: #184

@ro-ka
Copy link
Contributor

ro-ka commented Oct 22, 2018

Thanks for reporting! If someone wants to fix, go ahead!

@WindRider7
Copy link
Author

A little bit off topic question but, does anyone know if there is a possibility to preserve the focus on the field after selecting suggestion with mouse click ?

@consciousweb
Copy link

A little bit off topic question but, does anyone know if there is a possibility to preserve the focus on the field after selecting suggestion with mouse click ?

@WindRider7 did you find a way to preserve focus?

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

No branches or pull requests

3 participants