Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ensure loading button withasChild renders the correct element#752

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
chaance wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromchance/fix-loading-button-with-aschild

Conversation

@chaance
Copy link
Member

Description

UsingasChild with the button component in theloading state is currently broken. Because we wrap the child (assuming the child represents the inner contents of the button rather than the button element itself), RadixSlot is unable to resolve the slottable component since it is not a direct child of the slottable component. The result is that the button does not render a wrapping DOM element, and the loading spinner ends up positioned relative to nearest relative container.

This PR solves the problem by extracting the nested element's children, wrapping them, passing that into a clone of the element passed to the children prop.

@vercel
Copy link

vercelbot commentedSep 4, 2025
edited
Loading

The latest updates on your projects. Learn more aboutVercel for GitHub.

ProjectDeploymentPreviewCommentsUpdated (UTC)
themes-playgroundErrorErrorSep 4, 2025 10:36pm

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@chaance

[8]ページ先頭

©2009-2025 Movatter.jp