Range slider selected interval coloring broken

Hello,

Sometimes when using the range slider the selected interval is colored the same way as the rest of the interval:

Then only black part should be between 0 and 340. This happens from time to time. My code is:
 <SfSlider @ref="this.slider" @bind-Value="this.Limits" Type=SliderType.Range [email protected][0] [email protected][1] Step="0.1">
                <SliderTicksData Placement="Placement.Before" LargeStep=@(425/5)/>
                <SliderTooltipData IsVisible="true" ShowOn="TooltipShowOn.Hover"/>
            </SfSlider>
This slider is inside a modal and when the modal is opened I refresh the slider.

2 Replies 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team February 4, 2021 01:28 PM UTC

Hi Ivan, 

Thanks for contacting Syncfusion Support. 

We have validated your issue and were able to replicate it. We have considered this as a bug from our end and the fix for this will be included in our Volume 1,2021 release which is expected to be rolled out by the end of March. 

Please track the below feedback link below to know the status of this issue. 


Meanwhile, please share us the exact version of your application in which you get this issue. 

Please get back to us if you need any further assistance. 

Regards, 

Sharon Sanchez S. 



SS Sharon Sanchez Selvaraj Syncfusion Team May 31, 2021 08:05 AM UTC

Hi Ivan, 
 
We regret for the inconvenience.  
  
On further validation on the reported issue, we would like to convey that you have used the bind-Value attribute with variable Limits. 
  
public float[] Limits = { 0, 425 }; 
  
But the same variable has also been used for Min and Max property, this variable will be dynamically updated based on the selected values. 
  
<SfSlider @ref="this.slider" @bind-Value="this.Limits" Type=SliderType.Range [email protected][0] [email protected][1] Step="0.1"> 
<SliderTicksData Placement="Placement.Before" LargeStep=@(425/5) /> 
<SliderTooltipData IsVisible="true" ShowOn="TooltipShowOn.Hover" /> 
</SfSlider> 
  
When using the same variable for the Min and Max value, then values will be changing continuously. For resolving the reported issue, we suggest you to set the Min and Max value in another variable else need to set the value directly. 
  
Min="0" Max="425" 
  
The below code will resolve the reported issue, 
  
<SfSlider @ref="this.slider" @bind-Value="this.Limits" Type=SliderType.Range  Min="0" Max="425"> 
<SliderTicksData Placement="Placement.Before" LargeStep=@(425/5) /> 
<SliderTooltipData IsVisible="true" ShowOn="TooltipShowOn.Hover" /> 
</SfSlider> 
 
 
  
Refer to the sample. 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
 
Sharon Sanchez S. 


Marked as answer
Loader.
Up arrow icon