diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor index 2501a04127..3e58665974 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor @@ -1,139 +1,140 @@ -@namespace Bit.BlazorUI -@inherits BitComponentBase -@typeparam TItem +@namespace Bit.BlazorUI +@inherits BitComponentBase +@typeparam TItem + + + + + +@{ + var _selectedItem = Sticky ? SelectedItem : null; +} +
+ + + @if (Split) + { + + + + } +
- - - +
-@{ - var _selectedItem = Sticky ? SelectedItem : null; -} -
- - - @if (Split) - { - - - - } - -
- -
- -
-
\ No newline at end of file +
+ +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor.cs index 2fa2ffbaa2..603afd16ee 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor.cs @@ -10,6 +10,7 @@ public partial class BitMenuButton : BitComponentBase where TItem : class private List _items = []; private BitButtonType _buttonType; private string _calloutId = default!; + private string _overlayId = default!; private IEnumerable _oldItems = default!; private DotNetObjectReference> _dotnetObj = default!; @@ -271,6 +272,7 @@ protected override void RegisterCssStyles() protected override async Task OnInitializedAsync() { _calloutId = $"BitMenuButton-{UniqueId}-callout"; + _overlayId = $"BitMenuButton-{UniqueId}-overlay"; if (Sticky && SelectedItemHasBeenSet is false && DefaultSelectedItem is not null) { @@ -617,6 +619,7 @@ await _js.BitCalloutToggleCallout( component: null, calloutId: _calloutId, callout: null, + overlayId: _overlayId, isCalloutOpen: IsOpen, responsiveMode: BitResponsiveMode.None, dropDirection: BitDropDirection.TopAndBottom, diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/CircularTimePicker/BitCircularTimePicker.razor b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/CircularTimePicker/BitCircularTimePicker.razor index f8496d2132..40c2f732e3 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/CircularTimePicker/BitCircularTimePicker.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/CircularTimePicker/BitCircularTimePicker.razor @@ -58,10 +58,6 @@ } - -
} else { @@ -76,125 +72,133 @@ readonly="@(AllowTextInput is false || ReadOnly)" /> } -
-