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

Fix #4778: update the tabstrip view after render. #4804

Closed
wants to merge 1 commit into from

Conversation

zyhfish
Copy link
Contributor

@zyhfish zyhfish commented Nov 7, 2024

No description provided.

@sbwalker
Copy link
Member

sbwalker commented Nov 8, 2024

@zyhfish the problem with this solution is that it only works withing an Interactive rendered component - whereas the TabStrip component can also be used within a Static rendered component. If possible it would best to avoid JavaScript to support both render modes.

@zyhfish
Copy link
Contributor Author

zyhfish commented Nov 9, 2024

Hi @sbwalker , I think this will not be a problem in static render mode as it will full refresh the page when post back, currently this behavior is occur in the client side so can only correct it by javascript.

@sbwalker
Copy link
Member

sbwalker commented Nov 9, 2024

Static render mode does not do a full page refresh in Blazor... it uses Enhanced Navigation to only update the elements which were changed.

@zyhfish
Copy link
Contributor Author

zyhfish commented Nov 10, 2024

Hi @sbwalker , please check the attached package to verify the static render mode. (you may need to rename it with nupkg extension)
Owner.Module.Test.1.0.0.zip

@sbwalker
Copy link
Member

@zyhfish #4828 seems to resolve the issue without the use of JavaScript - so I am going to close this PR

@sbwalker sbwalker closed this Nov 22, 2024
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.

2 participants