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

Fix bug where Sidebar input refreshed on 'Enter' #7342

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

rembrandtreyes
Copy link
Contributor

@rembrandtreyes rembrandtreyes commented Jul 9, 2019

Issue: #7244

What I did

The sidebar search input would refresh when a user hits "Enter". I prevented the form from submitting by passing in a .preventDefault() through onSubmit on the Form level.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@vercel
Copy link

vercel bot commented Jul 9, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fork-rembrandtreyes-7244-sidebar-refresh.storybook.now.sh

@rembrandtreyes rembrandtreyes marked this pull request as ready for review July 9, 2019 02:36
@shilman shilman added bug ui patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jul 9, 2019
@shilman shilman added this to the 5.1.x milestone Jul 9, 2019
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix!

@shilman shilman merged commit 438699b into storybookjs:next Jul 10, 2019
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 31, 2019
shilman added a commit that referenced this pull request Jul 31, 2019
Fix bug where Sidebar input refreshed on 'Enter'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants