Skip to content

Conversation

@hkwid
Copy link

@hkwid hkwid commented Mar 24, 2025

Description

This PR fixes a logic issue in the Button component where loadingText would always be displayed when provided, regardless of the loading state. The correct behavior is to only show loadingText when the button is in a loading state.

Changes

Updated the conditional rendering logic in the Button component
The component now correctly:

Shows loadingText if loading=true and loadingText exists
Shows spinner with invisible children if loading=true and no loadingText
Shows children if loading=false, regardless of loadingText value

@vercel
Copy link

vercel bot commented Mar 24, 2025

@hkwid is attempting to deploy a commit to the Personal Team on Vercel.

A member of the Team first needs to authorize it.

@hkwid
Copy link
Author

hkwid commented Mar 24, 2025

According to this comment, I opened PR here (park-ui).
chakra-ui/ark#3398 (comment)

@hkwid hkwid changed the title Fix Button Loading State Logic (react) fix(react): Button Loading State Logic Mar 24, 2025
@hkwid
Copy link
Author

hkwid commented Jul 10, 2025

more than 100 days no response... 🥲

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant