Skip to content

Blazored modal get initialized again when closing an older one #470

Answered by LoupaLoupa
shasastf asked this question in Q&A
Discussion options

You must be logged in to vote

I have figured a work around, by using a local object in the function that creates the modal and then pass it as a ref parameter, this keeps the position on refresh and stay alive in the context since the Modal keeps the context alive while open. If we call the function again, it creates a new context and we could have a second instrument of the same type if we wanted (We don't right now, we prevent it, but future project will).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by shasastf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants