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.

[Feat]: Default-values for slider / sider-handle

See original GitHub issue

Code of conduct

  • I agree to follow this project’s code of conduct.

Impacted component(s)

Slider, SliderHandle

Description of the requested feature

We’d like to have a feature implemented in Slider or SliderHandle to provide a default-value. If the user would then double click on the slider or the handle the value would reset to the provided default-value.

Mockups or screenshots

No response

Implementation notes or ideas

I tested also detecting a double click on the slider track. This might be possible to let the user even reset a slider when not double clicking on the slider handle. We need to consider resetting values also for keyboard-users. Maybe we can use Escape key when the handle has focus to reset to default value (if given).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jnurthencommented, Jul 29, 2022
0reactions
najikahalsemacommented, Oct 26, 2022

related to #586

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - A component is changing the default value state of an ...
Nope, sliders are unique but not particularly special or different than other inputs. When using defaultValue and it changes then react warns ...
Read more >
Where Should I Start? On Default Values for Slider Questions ...
For 101-point questions (e.g., feeling thermometers), when the slider default values are set to be 25, 50, 75, or 100, significantly more respondents...
Read more >
Solved: Setting default values for knob and slider inputs?
Set the default value for the slide-type input (or the knob). Right click on the control. Select "Data Operations" > "Make Current Value...
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