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

flash of text when creating a button having loading={true} on instantiation #832

Open
jhoward-eightfold opened this issue May 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jhoward-eightfold
Copy link
Contributor

In a scenario where loading has a true value from the beginning, the button component text flashes before switching to the loading animation. Reproducible in storybook:
https://github.com/EightfoldAI/octuple/assets/106610186/931476b9-6f3d-41ab-9b12-0b1c6b90ce07

This use case is that the button action is dependent on an API call but we want it rendered on the page with loading animation until we know the correct text/action to use

@jhoward-eightfold jhoward-eightfold changed the title flash of test when creating a button having loading={true} on instantiation flash of text when creating a button having loading={true} on instantiation May 14, 2024
@dkilgore-eightfold dkilgore-eightfold self-assigned this May 17, 2024
@dkilgore-eightfold dkilgore-eightfold added the bug Something isn't working label May 17, 2024
@dkilgore-eightfold dkilgore-eightfold removed their assignment Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants