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(clerk-js): Ensure only one action is present within EmailSection UI #5023

Conversation

alexcarpenter
Copy link
Member

@alexcarpenter alexcarpenter commented Jan 27, 2025

Description

  • Currently within user profile, you can open both add email address and remove email address forms at once which leads to some awkward UX
  • This PR updates some logic to only be able to render one at a time

BEFORE

Screen.Recording.2025-01-28.at.1.20.40.PM.mov

AFTER

Screen.Recording.2025-01-28.at.1.19.27.PM.mov

Fixes SDKI-817

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

vercel bot commented Jan 27, 2025

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

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 7:40pm

Copy link

changeset-bot bot commented Jan 27, 2025

🦋 Changeset detected

Latest commit: 53b4de4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +7 to +11
type ActionRootProps = PropsWithChildren<{
animate?: boolean;
value?: string | null;
onChange?: (value: string | null) => void;
}>;
Copy link
Member Author

Choose a reason for hiding this comment

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

Introduce options to be able to make Action.Root a controlled component.

@alexcarpenter
Copy link
Member Author

Closing in favor of #5030

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.

3 participants