private void OnSetActive(bool active, BSDropdownItem item) { if (!_canHandleActive) { return; } if (_activeOwner == item && !active) { if (IsActive == active) { return; } IsActive = false; } if (active) { _activeOwner = item; if (IsActive == active) { return; } IsActive = true; } StateHasChanged(); }
internal void SetActive(bool active, BSDropdownItem item) { OnSetActive?.Invoke(active, item); }