/// <summary> /// Handles the onclick event, if not disabled. /// </summary> /// <returns></returns> protected async Task ClickHandler() { if (!Disabled) { if (ParentDropdown is not null) { if (!ParentDropdown.WasJustToggled) { await ParentDropdown.Hide(true); } } await Clicked.InvokeAsync(Value); } }
public Task Close(CloseReason closeReason) { ParentDropdown?.Hide(); return(Task.CompletedTask); }