Blazored / Modal

A powerful and customizable modal implementation for Blazor applications.
https://blazored.github.io/Modal/
MIT License
777 stars 185 forks source link

Multiple modal with passing data #465

Closed fdonnet closed 2 years ago

fdonnet commented 2 years ago

When I "Show" the second modal from the first one it closes the first one.

It's like the second modal "Show" call ModalService.Show("TEST"), params) forces a close on the first modal and I don't know why.

I pass data from the main page to the first modal and from the sfirst modal to the 2nd modal I don't know if it can have an effect.

Expected behavior First modal needs to remain open.

Hosting Model (is this issue happening with a certain hosting model?):

Additional context Pass data and waiting for a result from both modals (1st and second)

fdonnet commented 2 years ago

I found something => it's seems that it trigger the OnValidSubmit event from the standard blazor compo (present in First modal). I don't know why. I will go deeper.

fdonnet commented 2 years ago

Ok my bad : it seems that trigger the "OnValidSubmit" event on each button if you don't specify the type (type="button"). The default type is "submit" for each button in the tag. You can close the issue. SRY.

fdonnet commented 2 years ago

Not linked to the cool Blazored Modal compo.