react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

onShownDateChange does not fire when calling a Function

Open NiksanJP opened this issue 3 years ago • 2 comments

Subject of the issue

When you use onShownDateChange on DateRange. It does not fire a function when the function is called using

  1. onShownDateChange={(a,b) => changeDateVals(a,b)}
  2. 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

NiksanJP avatar Mar 02 '21 13:03 NiksanJP

I will take a look into this and get back 👍

kamyar avatar Jun 10 '21 22:06 kamyar

@kamyar any news?

anticol avatar Jan 21 '22 08:01 anticol