-
-
Notifications
You must be signed in to change notification settings - Fork 24
Add a cancelled event to the date/time picker #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add a cancelled event when the return value is null
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@yassipad, Could you review and fix the lint errors - https://travis-ci.org/NativeScript/nativescript-datetimepicker/jobs/575108066? |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: yassipad.
|
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Hi @yassipad |
|
Hi, |
|
Yes, that's exactly what I mean - two events at the same - cancel+close vs confirm+close. Something like: |
|
Yes, great, should we send the closed event first or after the cancelled/confirmed event? |
|
It sounds more logical to me to send the confirm/cancel first and then the close event. |
|
@yassipad, |
PR Checklist
What is the current behavior?
There is no way to know if the user cancelled or confirmed.
What is the new behavior?
A "cancelled" event is emitted when the return value of the picker is null.
Fixes #41.