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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 Properly handle card clicks in storybook #549

Closed
Thenlie opened this issue Sep 24, 2023 · 3 comments 路 Fixed by #628
Closed

馃悶 Properly handle card clicks in storybook #549

Thenlie opened this issue Sep 24, 2023 · 3 comments 路 Fixed by #628
Assignees
Labels
type: bug Something isn't working type: storybook Creating or updating a storybook file
Milestone

Comments

@Thenlie
Copy link
Owner

Thenlie commented Sep 24, 2023

This ticket should tackle two issues.

  1. When clicking on a show card in storybook, nothing should happen. We will need to override the default onClick behavior to do this.
  2. Add a generic error boundary component to gracefully handle any future errors. This should be applied to all existing stories.

Image

@Thenlie Thenlie changed the title Properly handle card clicks in storybook 馃悶 Properly handle card clicks in storybook Sep 24, 2023
@Thenlie Thenlie added type: bug Something isn't working type: storybook Creating or updating a storybook file labels Sep 24, 2023
@Thenlie Thenlie self-assigned this Sep 26, 2023
@Thenlie Thenlie modified the milestones: 1.8.0, 1.9.0 Sep 26, 2023
@Thenlie
Copy link
Owner Author

Thenlie commented Sep 28, 2023

@Thenlie
Copy link
Owner Author

Thenlie commented Sep 30, 2023

So this is not possible. We have a few options:

  1. Pass in the onClick behavior as props
  2. Just add an errorElement and leave it

I think I will go with the second option and just mention this issue in our docs.

@Thenlie Thenlie modified the milestones: 1.9.0, 1.10.0 Oct 11, 2023
Thenlie added a commit that referenced this issue Oct 21, 2023
@Thenlie Thenlie linked a pull request Oct 21, 2023 that will close this issue
Thenlie added a commit that referenced this issue Oct 21, 2023
@Thenlie
Copy link
Owner Author

Thenlie commented Oct 21, 2023

I was able to figure out a solution/workaround to properly handle this. Closed by #628

@Thenlie Thenlie closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: storybook Creating or updating a storybook file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant