-
-
Notifications
You must be signed in to change notification settings - Fork 411
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: dismiss android datepicker dialog upon unmount #337
Conversation
This commit makes the behavior of the android datetimepickers more in line with other controlled components in react, where unmounting the component actually dismisses the ui widget as well. Co-authored-by: Stian Jensen <[email protected]>
@vonovak I think we can add docs for |
@luancurti in order to expose that as the public api, we'd need to expose a bunch of other things as well, and I think it'll be better to leave that for another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## [3.0.5](v3.0.4...v3.0.5) (2020-11-17) ### Bug Fixes * dismiss android datepicker dialog upon unmount ([#337](#337)) ([62abaff](62abaff))
🎉 This PR is included in version 3.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
this replaces #326 because the author did not allow to push into his branch
I figured it was easier to do this separately than by reviews
original description:
I also think it might be useful to have a way to dismiss android dialogs from JS and this will expose that possibility. The api will be documented later after we change the api of the android picker to an imperative one, as outlined in #327 (comment)
Test Plan
run demo app, click the "Show and dismiss picker!" button
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
example/App.js
)