Open wnvko opened 6 months ago
I am trying to update local variable via change event of the range slider component.
change
Use code like this:
const [range, setRange] = useState<IgrRangeSliderValue | undefined>(); ... <IgrRangeSlider lower={range?.lower} upper={range?.upper} change={(_s, e) => setRange(e.detail)}></IgrRangeSlider> <p>Range is {range?.lower} - {range?.upper}</p>
On each change the e.detail contains {lower: 0, upper: 0}. Here is the result:
e.detail
{lower: 0, upper: 0}
change event should emit correct values in its detail.
detail
Description
I am trying to update local variable via
change
event of the range slider component.Steps to reproduce
Use code like this:
Result
On each change the
e.detail
contains{lower: 0, upper: 0}
. Here is the result:Expected result
change
event should emit correct values in itsdetail
.