[Slider] Remove not needed mark in range Sliders
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
Whenever both the start and the end points have been dragged to the end of the slider an extra mark has been added at the end of the slider which is visible when both the drag points aren’t at the end.
Expected behavior 🤔
The extra mark in the slider must be removed and retain the required marks that has been provided in the props.
Steps to reproduce 🕹
Steps:
- Add marks to the range slider for both range start and end as follows.
- Drag both the range points to the end of the slider.
- Now drag both the range points from the end to another position.
- Now we will be able to get three marks where the third one isn’t a required one and must have been removed.
Context 🔦
We have been using the range slider for a requirement in our project, where the user needs to choose certain range and the user needs to be provided with the labels of their selections. Since the marks might overwrite one another we needed to keep the marks to the minimal amount, In this case its getting added up by one.
Your environment 🌎
`npx @mui/5.5.2`
Chrome latest version
Output from `npx @mui/5.5.2` goes here.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Range input (slider) with markings for intermediate points
1 Answer 1 · Use a linear-gradient (repeating) to generate the lines at the required intervals; Add the text using a pseudo-element and...
Read more >A Sliding Nightmare: Understanding the Range Input
We need to bring up DevTools, then go to the range input we want to inspect, right click it, select Inspect Element and...
Read more >Slider Design: Rules of Thumb - Nielsen Norman Group
Allowing the selection of a very specific value is often not necessary, nor very helpful, to the user. Sliders work best when the...
Read more >Sliders - Selection and input - Human Interface Guidelines
Labels can be numbers or words, depending on the slider's values. It's unnecessary to label every tick mark unless doing so is needed...
Read more >How to Create a Range Slider in HTML + CSS - HubSpot Blog
Tick mark sliders are beneficial if you need a range slider with more precision. In this example, we will build a volume control....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@michaldudak Created the PR #33526
Looks good to me. Please create a PR with this change.