diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor index 3fed74e82a6..e530d42afba 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor @@ -51,6 +51,7 @@ @onchange="@HandleOnChange" @onfocusin="@HandleOnFocusIn" @onfocusout="@HandleOnFocusOut" + @onkeydown="@HandleOnInputKeyDown" type="text" name="@Name" id="@_inputId" @@ -69,14 +70,14 @@ style="@Styles?.Input" class="bit-dtrp-inp@(AllowTextInput ? " bit-dtrp-ein" : null) @Classes?.Input" /> - @if (IsEnabled && ShowClearButton && CurrentValue?.StartDate is not null) + @if (IsEnabled && ReadOnly is false && ShowClearButton && (CurrentValue?.StartDate is not null || CurrentValue?.EndDate is not null)) {