question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slider] Remove not needed mark in range Sliders

See original GitHub issue

Duplicates

  • 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:

  1. Add marks to the range slider for both range start and end as follows. image
  2. Drag both the range points to the end of the slider. image
  3. Now drag both the range points from the end to another position. image
  4. 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:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kskd1804commented, Jul 15, 2022

@michaldudak Created the PR #33526

0reactions
michaldudakcommented, Jul 15, 2022

Looks good to me. Please create a PR with this change.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found