Closed ahawryla closed 8 years ago
So you are arguing that a click somewhere outside the daterangepicker should mean "Cancel", and not just "hide the daterangepicker (and maybe I'll decide later to click Apply or Cancel)"?
The current semantics looks fine to me. Still your proposal might be better.
Yes, I am. Right now, in situation described in points 4 and 5 above, there is an inconsistency between what a user can see and what he actually have selected and it may be confusing.
OK, if you want consistency, the same behaviour is needed when the user presses Escape (line 607). If you modify your PR, we'll merge it.
And let's not forget clicking the trigger button (toggle - line 644).
I've added reset() also to places indicated by you. Thanks for pointing them out!
Thanks a lot! :)
On 2015-12-10 15:27, op16 wrote:
Merged #40 https://github.com/tamble/jquery-ui-daterangepicker/pull/40.
— Reply to this email directly or view it on GitHub https://github.com/tamble/jquery-ui-daterangepicker/pull/40#event-488226577.
Thank you for your contribution!
solution: in $mask.click call both close and reset function as it is done for 'cancel' button click handler