Skip to content

fix: Dialog.Hide() doesn't hide in DialogService/FluentDialog #2542

@softinvent-cto

Description

@softinvent-cto

🐛 Bug Report

In our app, which resembles many of MS admin apps such as M365 admin, we use panels to display and gather primary data about an entity. For child entities we hide the primary panel and show a secondary panel to gather data for these, which has worked fine up to and including v4.8.1.

However, after upgrading to versions greater than 4.8.1 we experience that the primary panel isn't hidden, if data has been entered into it before the secondary panel is shown. If no data has been entered in the primary panel it is hidden correctly.

💻 Repro or Code Sample

I've attached an example solution using dialogs where the error can be reproduced.
If the project dependencies of the FluentUI components is set back to 4.8.1 the problem goes away.

FluentBlazorLayeredDialogs.zip

🤔 Expected Behavior

The dialog/panel should be hidden after a call to Dialog.Hide()

😯 Current Behavior

After v.4.8.1 the dialog/panel isn't hidden, if data has been entered into a field in the dialog.

🌍 Your Environment

  • OS & Device: Windows 11
  • Browser: Microsoft Edge
  • .NET and Fluent UI Blazor library Version > 4.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions