-
Notifications
You must be signed in to change notification settings - Fork 29
NTP: Reset omnibar after form submission #1819
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
Conversation
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Tue, 15 Jul 2025 10:05:02 GMT Integration
File has changed Windows
File has changed Apple
File has changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noisysocks clicking a line-item (when searching for pizza) doesn’t submit for me.
Ah, I see the issue. Should have tested in WebKit. Working on it. |
* Refactor omnibar to use prop callbacks and reset form on submit * Rename props and handlers from set*/on* to onChange/handle* for consistency * Put back event.preventDefault() * setTerm -> onChangeTerm * Fix tests after merge * Add tabindex to suggestions so that Safari/WebKit fires focus events on it
Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1209121419454298/task/1210771515454552?focus=true
Description
Resets the omnibar component after submitting the form or selecting a suggestion.
Also renames props/handlers to use
handleVerbNoun
andonVerbNoun
consistently since this was getting a bit crazy.Testing Steps
Checklist
Please tick all that apply: