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(picker): pass data and role to the dismiss based on button click or backdrop #19787

Merged
merged 4 commits into from Oct 30, 2019

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Oct 29, 2019

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: fixes #18454

What is the new behavior?

  • Pass the button role on dismiss of the picker (on button click or backdrop tap)
  • Pass the selected values in the data on dismiss ONLY if the dismiss role is not "cancel" or "backdrop"
  • Call the cancel handler when dismissing if the role is "cancel" or "backdrop"

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev release: 5.0.0-dev.201910292106.aebfdfc

@ionitron-bot ionitron-bot bot added the package: core @ionic/core package label Oct 29, 2019
@brandyscarney brandyscarney changed the title fix(picker): pass role to the dismiss on button click and backdrop fix(picker): pass data and role to the dismiss based on button click or backdrop Oct 29, 2019
@brandyscarney brandyscarney merged commit 7988720 into master Oct 30, 2019
@brandyscarney brandyscarney deleted the fix-picker-dismiss branch October 30, 2019 17:25
elylucas pushed a commit that referenced this pull request Oct 30, 2019
…or backdrop (#19787)

- Pass the button role on dismiss of the picker (on button click or backdrop tap)
- Pass the selected values in the data on dismiss ONLY if the dismiss role is not "cancel" or "backdrop"
- Call the cancel handler when dismissing if the role is "cancel" or "backdrop"

Fixes #18454
mhartington pushed a commit that referenced this pull request Oct 31, 2019
…or backdrop (#19787)

- Pass the button role on dismiss of the picker (on button click or backdrop tap)
- Pass the selected values in the data on dismiss ONLY if the dismiss role is not "cancel" or "backdrop"
- Call the cancel handler when dismissing if the role is "cancel" or "backdrop"

Fixes #18454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[4.12.0] [ion-picker] dismiss function doesn't pass data and role data to onDidDismiss
2 participants