RangePicker clicks on a different area to close the date box for a bug that triggers the onChange event of the old value
See original GitHub issueRangePicker 点击其他区域关闭日期框会触发返回一个旧值的OnChange事件的BUG,如下图所示:
RangePicker Clicking on another area to close the date box triggers a BUG that returns an old Value OnChange event, as shown in the following figure:
只有按下拉框里的确定按钮关闭才不会触发旧的Onchange事件
Only pressing the OK button in the drop-down box to close does not trigger the old Onchange event
所以点击其他区域关闭日期框是不是不应该触发一个Onchange?
So clicking on other areas to close the date box shouldn’t trigger an Onchange?
code:
<RangePicker OnChange="OnDatePickChange" AllowClear="@false" Value="@(new DateTime?[] {)" TValue="DateTime?[]" ShowTime='@("HH:mm")' Format="MM-dd HH:mm"/>
Issue Analytics
- State:
- Created a year ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
DateTimePicker and TimePicker should accept the value ...
DateTimePicker & TimePicker do not have 'final click' to let component know what time is the value user want to submit.
Read more >How can I detect the onChange event for the start and end ...
Everytime the onChange or onCalendarChange event is triggered on the RangePicker, I get both dates, and I want to detect the events separately, ......
Read more >DatePicker
RangePicker ; allowEmpty, Allow start or end input leave empty, [boolean, boolean] ; dateRender, Custom rendering function for date cells, >= 5.4.0 use...
Read more >Date Range Picker for Bootstrap
The Date Range Picker is attached to a text input. It will use the current value of the input to initialize, and update...
Read more >Date Range Picker — JavaScript Date & Time Picker Library
Produces: You can customize Date Range Picker with options, and get notified when the user chooses new dates by providing a callback function....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@GlodenBoy Please read the above and wait a bit while the OnChange behavior will be fixed.
@GlodenBoy The OnChange should not be triggered by the closed dropdown. This will be fixed.
No, it should not have the same behavior as the OK button. It reverts the value to the previous one or clears it if not confirmed with the OK button.