Skip to content
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

fix(datetime): emit ioncancel event on backdrop click for datetime #10532

Merged
merged 3 commits into from
Apr 1, 2017
Merged

fix(datetime): emit ioncancel event on backdrop click for datetime #10532

merged 3 commits into from
Apr 1, 2017

Conversation

topalavlad
Copy link
Contributor

@topalavlad topalavlad commented Feb 22, 2017

Short description of what this resolves:

The datepicker component will emit ioncancel event on backdrop click

Changes proposed in this pull request:

If dismiss was received with role backdrop, emit ioncancel

Ionic Version: 1.x / 2.x
2.x
Fixes: #

…mponent - fix for all picker components instead of specifically for datetime
@manucorporat manucorporat modified the milestone: 2.3.0 Mar 4, 2017
@manucorporat manucorporat modified the milestones: 2.4.0, 2.3.0 Mar 16, 2017
@@ -513,7 +513,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
picker.present(pickerOptions);

this._isOpen = true;
picker.onDidDismiss(() => {
picker.onDidDismiss((data: any, role: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the closure's arguments are not used at all, why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed your question. I probably added them for debugging and forgot about them. Thanks for reverting the change.

@manucorporat manucorporat merged commit 4ac8ffb into ionic-team:master Apr 1, 2017
@topalavlad topalavlad deleted the ionic-10473 branch April 5, 2017 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants