-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(table): hide empty content if isLoading is true (#2470) #2491
fix(table): hide empty content if isLoading is true (#2470) #2491
Conversation
Avoid displaying loadingContent and emptyContent at the same time. Note that there's an existing issue with loadingContent where if emptyContent is not provided, it will render loadingContent on top of the columns (instead of inside the table). This change doesn't fix that, but rather make isLoading play nice with a provided emptyContent. A separate fix is still needed for when emptyContent is not provided, which may affect this change later.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@brunokc is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
Hi @jrgarciadev @tianenpang @wingkwong, This change seems to be enough for I'm not sure this is acceptable. I intended to fix the " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! @brunokc
I will raise PR for this |
Closes #2470
📝 Description
This change ensures that
emptyContent
is hidden ifisLoading
istrue
⛳️ Current behavior (updates)
Currently, if
loadingContent
andemptyContent
are both provided, andisLoading
is true, NextUI will render both of them on top of each other.🚀 New behavior
This change suppresses the rendering of
emptyContent
ifisLoading
is true.💣 Is this a breaking change (Yes/No):
No.
📝 Additional Information
Note that there's an existing issue with
loadingContent
where ifemptyContent
is not provided, NextUI will renderloadingContent
on top of the columns (instead of inside the table). This change doesn't fix that, but rather makeisLoading
/loadingContent
play nice with a providedemptyContent
. A separate fix is still needed for whenemptyContent
is not provided.