-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Bug Report][3.3.19] VDataTable always shows loading text when loading prop is set #18445
Comments
+1 |
Just upgraded from vuetify 3.3.16 to 3.4.0 and this behaviour still exists. In 3.3.16 labs version it was working as expected. |
+1 Always replacing the rows causes page jumps and feels very disturbing. |
I had the same issue when upgrading. @nekosaur this functional change of the loading came with this commit to handle the loading-text prop. Was it expected ? What do you think about @dm4t2 proposition ? Would it work to check for ![]() |
The documentation is also inconsistent with this behaviour, for example the
Other documentation talking about the To line up with that there'd also need to be a check in the render function mentioned above that there aren't any items first before showing the loading slot or loading text. if (props.loading && !props.items.length && (slots.loading || props.loadingText)) { |
Additional gifs to further clarify the expected behavior. A comparison between the old Vuetify 2 and the current behavior. In Vuetify 2 docs the example: In the latest version of Vuetify 3 docs example: Currently, I work around this by wrapping my table in a |
closes #18445 Co-authored-by: John Leider <john@vuetifyjs.com>
Environment
Vuetify Version: 3.3.19
Last working version: 3.3.18
Vue Version: 3.3.4
Browsers: Chrome 117.0.0.0
OS: Windows 10
Steps to reproduce
Click on the "TOGGLE LOADING PROP" button and compare the results between vuetify version 3.3.18 and 3.3.19.
Expected Behavior
Table rows remain visible while loading, just grayed out.
Actual Behavior
Table rows always disappear, default loading text is shown.
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
deb7683
I belive that this commit introduced the change which always hides the table rows. If the loading prop is set, the rows are always replaced. There should be an extra flag which allows the actual rows to remain visible, or something similar.
The text was updated successfully, but these errors were encountered: