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 bug: handler can only be used once

See original GitHub issue

🐛 Bug report

slider can only be moved once

💥 Steps to reproduce

Slider is broken/fixed after first slide

💻 Link to reproduction

It seems like all sliders on official Chakra doc has the exact problem. https://chakra-ui.com/docs/form/slider

🧐 Expected behavior

Slider can be freely moved without customization.

📝 Additional information

I saw this error once in dev before I found the same issue persist on Chakra-UI doc but cannot reproduce. This may not relate to the problem. Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dodascommented, Jan 17, 2021

Released now in @chakra-ui/react@1.1.5.🎉

3reactions
tomhickscommented, Jan 16, 2021

I was experiencing the exact same issue and already wondered why nobody opened an issue for this, if anyone has a temporary workaround, would love to know!

I have a workaround…

const [key, setKey] = useState(0)
React.useEffect(() => {
  function handleMouseUp() {
    setKey(Math.random())
  }

  document.addEventListener("mouseup", handleMouseUp)
  
  return () => {
    document.removeEventListener("mouseup", handleMouseUp)
  }
})
<Slider
  key={key}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can only have one instance of slideshow all subsequent slideshows ...
I am attempting to use one view, one option set, one content type to create multiple responsive sliders on a website. I add...
Read more >
Shiny: Why updateSliderInput works only one time?
Unfortunately, slider input update works only once! Documentation example suggests to use observe() construct watching some reactive values ...
Read more >
New RangeSliderInterval not working properly - OutSystems
First bug: When sliding the top slider, the second slider gets rendered and shows steps we've never turned on. Because the second slider...
Read more >
Unexpected Bug: Disabled Slider Button and Filters - Wix.com
Hello Forum, I have a database of companies that I would like to filter using a slider button so that users can establish...
Read more >
ValueChanged event of Slider is not always fired
Regarding the Slider problem: The handler did not have any slow operation. It just stored the value in a variable and if the...
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