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

pressing 'enter' in searchbar refresh page #796

Closed
zayanimed97 opened this issue Jan 15, 2021 · 2 comments
Closed

pressing 'enter' in searchbar refresh page #796

zayanimed97 opened this issue Jan 15, 2021 · 2 comments

Comments

@zayanimed97
Copy link

Hello,
when using the searchbar the "enter" key refreshes the page which isn't what I need to do.
After investigating a little it appears the problem is in this line:

<form v-if="searchEnabled" role="search">

'enter' Keypress submits the form so the page is refreshed so I suggest a preventDefault on the submit.
Please if there is a workaround i'm all ears.

Thank you.

@xaksis
Copy link
Owner

xaksis commented Jan 15, 2021

Ah! This was due to a recent accessibility update. Will fix!

@zayanimed97
Copy link
Author

Great, Thank you.

@xaksis xaksis closed this as completed in fa7d90e Jan 17, 2021
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

No branches or pull requests

2 participants