fgilde / MudBlazor.Extensions

MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
http://www.mudex.org
MIT License
242 stars 20 forks source link

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

Closed jaypalexa closed 3 months ago

jaypalexa commented 3 months ago

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

fgilde commented 3 months ago

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

fgilde commented 3 months ago

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

jaypalexa commented 3 months ago

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