-
-
Notifications
You must be signed in to change notification settings - Fork 533
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
Tabs/TabsContent doesn't work with TabsRenderMode.LazyLoad #4894
Comments
Hello @hotfirewire You can check how they work here, please check LazyReload example, you can type in the input boxes to get a feel: |
Hello @David-Moreira , I've not clicked on the tab MtM and the data has already loaded. Thank you. |
Hello @hotfirewire Here's the example I tested:
|
Hello @hotfirewire, thank you for your submission. The issue was labeled "Status: Repro Missing", as you have not provided a way to reproduce the issue quickly. Most problems already solve themselves when isolated, but we would like you to provide us with a reproducible code to make it easier to investigate a possible bug. |
@David-Moreira I believe the error happens when the user has separate eg
It seems that |
I see I'll give it another go. But that's why It's important to provide a clear reproducible so we don't have to play a guessing game. :) I will let you guys know if I'm able to reproduce. |
@David-Moreira yes sorry about that I'll make sure to include the full repro next time I post any issues. @stsrki had it right, I'm using the tabs and tab content separately. I have the RenderMode="TabsRenderMode.LazyLoad" set on the but it doesn't seem to apply to the |
Yep, can confirm. We'll have to fix this in a future release, most likely by introducing
If you really want the feature in the time being, I believe you're able to implement it by managing the |
Describe the bug
When setting the RenderMode on the Tabs, using TabContent, to LazyLoad, all the tabs content gets loaded by default.
To Reproduce
Steps to reproduce the behavior:
`
@code {
string selectedTab = "overview_tab";
string selectedPanel = "overview_tab";
}
Expected behavior
The default tab would be loaded onLoad. Then each tab content would be loaded when the tab is clicked.
The text was updated successfully, but these errors were encountered: