react-date-range
react-date-range copied to clipboard
onShownDateChange does not fire when calling a Function
Subject of the issue
When you use onShownDateChange on DateRange. It does not fire a function when the function is called using
-
onShownDateChange={(a,b) => changeDateVals(a,b)} -
onShownDateChange={changeDateVals}
[BUG] Bug Reproduce Steps
Using
<DateRange className='ClanderProps' itemWidth={500} editableDateInputs={true} onChange={item => setDateVals([item.selection])} moveRangeOnFirstSelection={false} ranges={dateVals} onShownDateChange={changeDateVals} />
changeDateVals is a Function.
[BUG] Expected behaviour
Expected to run changeDateVals without any problem
Environment
Package Version:1.13 I think React version:17.0.0 Node version:14.15.0 Browser: Google Chrome
I will take a look into this and get back 👍
@kamyar any news?