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

refactor(str-1689): ♻️ make button a simple button #387

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

lorenaramonda
Copy link
Contributor

@lorenaramonda lorenaramonda commented Apr 3, 2023

Pull request type

Please check the type of change your PR introduces:-->

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Other (please describe):

How to test this PR

  • Nothing should change, should work as begore

What is the new behavior?

This PR set the type of the button to "button" so it won't trigger submit when used inside a form

Other information

To see the problem in action without the 'button' type specification you can go here: https://github.com/storyblok/storyfront/pull/3654 and test in the develop env: Space > Settings > Webhook > New webhook.
Write in a field and press enter: it will toggle the accordion because these accordion button act as submit as the slideover is wrapped inside a form element

@vercel
Copy link

vercel bot commented Apr 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
storyblok-design-system ✅ Ready (Inspect) Visit Preview Apr 4, 2023 8:04am

@lisilinhart lisilinhart merged commit 1833664 into develop Apr 4, 2023
@lisilinhart lisilinhart deleted the feature/STR-1689-fix-button branch April 4, 2023 09:48
@github-actions
Copy link

🎉 This PR is included in version 3.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants