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.

RangeSlider not responding on mobile

See original GitHub issue

Description

Cant reproduce your code on my site.

Link to Reproduction

https://codesandbox.io/s/laughing-mirzakhani-wzx974?file=/pages/index.js

Steps to reproduce

Hi

I pasted your code from the Chakra UI site on my site. The slider works on desktop but not mobile, bit it work on both for you site. Why is this?

TIA

PS LOVE Chakra!

` import { RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, } from ‘@chakra-ui/react

export default function Range(){

return(
    <RangeSlider

aria-label={[‘min’, ‘max’]} colorScheme=‘pink’ defaultValue={[10, 30]}

<RangeSliderTrack> <RangeSliderFilledTrack /> </RangeSliderTrack> <RangeSliderThumb index={0} /> <RangeSliderThumb index={1} /> </RangeSlider> )

} `

Chakra UI Version

2.2.4

Browser

Google Chrome

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
segunadebayocommented, Aug 26, 2022

Thanks for the detailed analysis @simonflk. This regression is on me and I’ve just pushed a fix for this. We’ll release an update shortly.

Reference: https://github.com/chakra-ui/chakra-ui/commit/7000bb5fe432db85ed41aeb0c5d488bbc7da4785

If the issue persists after upgrading, I’ll re-open it.

0reactions
simonflkcommented, Aug 25, 2022

I pasted your code from the Chakra UI site on my site. The slider works on desktop but not mobile, bit it work on both for you site. Why is this?

I saw the same thing happening yesterday, but today the chakra docs are broken - I’m guessing they just pushed out a docs update which picked up the new version.

I spent way too long trying to see why it appeared to work in the docs but not in my app

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - Range slider does not work in mobile? - Stack Overflow
I tried implementing jquery range slider, Its working perfectly in Computer but while browsing from mobile, its not working.
Read more >
range slider of custom field does not respond to touch event ...
However, the range slider do not respond to touch event on mobile. Solution: It is a custom JS codes (range slider) with iPhone...
Read more >
Problems with Material Range Slider on Android
The Problem. When I started making this component, I wrote this piece of code expecting to see a RangeSlider with values ranging from...
Read more >
Mobile Range Slider issue | OutSystems
Mobile. OutSystems Widgets. The range slider seems to not start at 0, even though the value is 0. See the gif below:.
Read more >
Range slider for contact form 7 does not work on mobile
[This thread is closed.] Range slider for contact form 7 Plugin does not work on mobile. How can I solve The Problem? If...
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