Hi All,
I am writing an app with a range slider.
I can get it to show a dual range slider with knobs initially set to 95,100 with min of 0 and max of 100.
It shows up with a NaN with just one toggle on iOS, it’s fine in electron and android. If I rotate the screen 90 degrees then back (vertical to horizontal, horizontal to vertical) it shows up correctly.
I tried importing the f7 component then doing:
f7.range.get("#rangeslider").updateScale();
to force a redraw and rescale but no joy. Dumping the object it has 95,100 as the values. Nothing else is setting values or messing with the component.
I can even change the value using the f7 component but the toggles don’t move and only the green line on the toggle changes.
Open to any ideas and suggestions.
Thanks to anyone that can help. I have done usual due diligence (stripped all my code out and just had a page with just this component on it).
Code for Slider:
<ListItem>
<ListItemCell className="flex-shrink-3">
<Range
id="rangeslider"
dual={true}
label={true}
scale={true}
min={40}
max={100}
step={1}
value={[95, 100]}
color="green"
onRangeChange={ event => { console.log('event', event) }}
/>
</ListItemCell>
</ListItem>