Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70959

IonRange bug?

$
0
0

I noticed if you scroll back and forth very fast eventually the IonRange component will break and set its values to a NaN. Could this be a bug with the component? Preventing the default action in these cases does not void this issue.

                <IonRange
                  value={field.value}
                  dualKnobs
                  pin
                  min={8}
                  max={99}
                  onIonChange={(e) => {
                    const { lower, upper } = e.detail.value as {
                      lower: number
                      upper: number
                    }
                    if (isNaN(lower) || isNaN(upper)) e.preventDefault()
                    field.onChange(e.detail.value)
                  }}
                />

Screenshot 2024-10-09 at 09.19.53

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>