CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

Made MudSelectExtended IsOpen flag public

Open m-flex opened this issue 1 year ago • 2 comments
trafficstars

For discussion:

Made IsOpen property public in MudSelectExtended. This change allows external components or logic to determine whether the dropdown is currently open. It resolves the issue where OnOpen fires too late for a particular use-case (it fires after the content is rendered). By making IsOpen public, you can now directly check the dropdown's state and conditionally render components in the dropdown, ensuring it appears immediately when the dropdown opens.

m-flex avatar Sep 27 '24 23:09 m-flex

Understand. But we generally use methods for this, like

public bool GetOpenState()
{
    return _isOpen;
}

If you don't want to set the property, calling via method makes sense for me.

mckaragoz avatar Sep 29 '24 15:09 mckaragoz

That makes sense, I've amended the PR as per your suggestions.

m-flex avatar Sep 30 '24 10:09 m-flex

Thanks 🥇

mckaragoz avatar Oct 14 '24 06:10 mckaragoz