# Slider not working as expected when disabled initially and enabled runtime

**URL:** <https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127>\
**Category:** Radzen.Blazor Components\
**Created:** [April 25, 2024, 6:35pm UTC](https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127 "2024-04-25T18:35:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdev1](https://forum.radzen.com/user_avatar/forum.radzen.com/webdev1/32/17928_2.png) [@webdev1](https://forum.radzen.com/u/webdev1)\
**Post date:** [April 25, 2024, 6:35pm UTC](https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127/1 "2024-04-25T18:35:42Z")

</div>

This was on the bug list as being fixed in 2.58.0, but I am using 4.30.2 and if I initially set the slider Disabled to true, enabling it results in the slider being frozen in place even though it appears to be enabled.

```auto
                    <RadzenSlider @bind-Value=@NonScalingStrokeWidth TValue="decimal" Min="0" Max="5" Step="0.1" Disabled="@IsNonScalingStrokeWidthDisabled" Change="@OnGapFillerSliderChange" />

```

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [April 26, 2024, 5:59am UTC](https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127/2 "2024-04-26T05:59:41Z")

</div>

Here is what I see on our demos using the latest version of Radzen.Blazor  
 ![slider](https://forum.radzen.com/uploads/default/original/3X/7/1/714375d1c6feadaf73f23d6a7e699b984c86b545.gif)

---

<div class="post-metadata">

**Author:** ![MatteoGrimaldi](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ecae2f/32.png) [@MatteoGrimaldi](https://forum.radzen.com/u/MatteoGrimaldi)\
**Post date:** [July 10, 2026, 9:01am UTC](https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127/3 "2026-07-10T09:01:58Z")

</div>

The bug is still there. With this code:

```auto
<div class="rz-p-12 rz-text-align-center">
    <RadzenCheckBox @bind-Value=_disabled />
    <RadzenSlider @bind-Value=@value TValue="int" Disabled=@_disabled />
</div>

@code {
int value = 33;
bool _disabled = true;
}

```

if you go ahead clicking on the checkbox, the slider disables correctly, but on the next check the slider looks enabled, but editing is blocked, and an error shows up in the console:

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]  
Unhandled exception rendering component: ObjectDisposed\_Generic  
ObjectDisposed\_ObjectName\_Name, Microsoft.JSInterop.WebAssembly.WebAssemblyJSObjectReference  
System.ObjectDisposedException: ObjectDisposed\_Generic  
ObjectDisposed\_ObjectName\_Name, Microsoft.JSInterop.WebAssembly.WebAssemblyJSObjectReference  
at Microsoft.JSInterop.Implementation.JSObjectReference.ThrowIfDisposed()  
at Microsoft.JSInterop.Implementation.JSObjectReference.InvokeAsync[IJSVoidResult](String , Object )  
at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference , String , Object )  
at Radzen.Blazor.RadzenSlider`1.d\_\_16[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [July 10, 2026, 1:50pm UTC](https://forum.radzen.com/t/slider-not-working-as-expected-when-disabled-initially-and-enabled-runtime/17127/4 "2026-07-10T13:50:11Z")

</div>

Thanks! Fix will be released immediately!
