fgilde/MudBlazor.Extensions

[Bug]: Clicking backdrop when 'BackdropClick = false' still closes dialog

Closed this issue · 3 comments

Contact Details

No response

What happened?

I upgraded to MudBlazor.Extensions v2.0.0 and changed the DialogOptionsEx option on an existing call from DisableBackdropClick = true to BackdropClick = false as per the MudBlazor v7 migration instructions.

When I clicked on the backdrop when the dialog was open, the dialog closed (and the shaded overlay remained, preventing interaction with the screen beneath it).

ref: MudBlazor v7.0.0 Migration Guide

Expected Behavior

I expected that when I clicked on the backdrop when a dialog was open that nothing would happen; that is, that the dialog would remain open.

Screenshots

No response

Reproduction link

No response

What application type are you referring to?

ServerRendered

Custom Application Type

No response

MudBlazor.Extension Version

2.0.0

MudBlazor Version

7.1.1

What .net Version are you using?

.Net8

What browser are you using?

Chrome

Sample Solution

TestApp.zip

Pull Request

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Thanks I will fix it after my vacation. Thanks for reporting

So I used the mac book from my wife and created a fix.

Its fixed in 2.0.2 https://www.nuget.org/packages/MudBlazor.Extensions/2.0.2

All working for me here now, many thanks. You have gone above and beyond. Enjoy your vacation!