In Development
Last Updated: 20 Jul 2026 08:18 by Wolfgang
Scheduled for 2026 Q3 (Aug)
Wolfgang
Created on: 20 Jul 2026 06:42
Category: Popup
Type: Bug Report
1
Popup OnHide does not fire on outside click after programmatic Hide()

The Popup OnHide event does not fire if the app has previously closed the Popup instance programmatically with the Hide() method.

The issue can be reproduced in this documentation example.

1 comment
Wolfgang
Posted on: 20 Jul 2026 08:18

Our internal workaround is resetting the flag manually when showing the popup.

```csharp

    public void Show()
    {
        _inner?.Show();

        // Theres a bug in Telerik UI for blazor 14.1: This flag is never reset on their code.
        // Because of this the popup OnHide event only works one time.
        // Until a new version is deployed, we reset the value manually here.
        var isProgrammaticHideMember = _inner!.GetType()
            .GetField("_isProgrammaticHide", BindingFlags.Instance | BindingFlags.NonPublic)!;
        isProgrammaticHideMember.SetValue(_inner, false);
    }

```