Skip to content

fix time picker sometimes resets to previous value #234

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

Merged
merged 3 commits into from
Jul 28, 2020

Conversation

mnmaraes
Copy link
Contributor

@mnmaraes mnmaraes commented Jul 28, 2020

Summary

Keeps values sent to JS side from resetting the native picker component on iOS.
fixes #192

It's a simple diff check on the Class' setDate: method

Test Plan

What's required for testing (prerequisites)?

See issue above

What are the steps to reproduce (after prerequisites)?

See issue above

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

Let me know if any other info/changes are needed :)

@vonovak vonovak changed the title DateTimePicker iOS fix fix time picker sometimes resets value to previous value Jul 28, 2020
@vonovak vonovak changed the title fix time picker sometimes resets value to previous value fix time picker sometimes reset to previous value Jul 28, 2020
@vonovak vonovak changed the title fix time picker sometimes reset to previous value fix time picker sometimes resets to previous value Jul 28, 2020
@vonovak vonovak merged commit fda536b into react-native-datetimepicker:master Jul 28, 2020
vonovak pushed a commit that referenced this pull request Jul 28, 2020
## [2.6.1](v2.6.0...v2.6.1) (2020-07-28)

### Bug Fixes

* time picker sometimes resets to previous value ([#234](#234)) ([fda536b](fda536b))
@vonovak
Copy link
Member

vonovak commented Jul 28, 2020

🎉 This PR is included in version 2.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

SConaway pushed a commit to SConaway/datetimepicker that referenced this pull request Aug 7, 2020
…etimepicker#234)

* DateTimePicker iOS fix

* [CHANGELOG] DateTimePicker iOS fix

* Update CHANGELOG.md

Co-authored-by: Vojtech Novak <[email protected]>
SConaway pushed a commit to SConaway/datetimepicker that referenced this pull request Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time picker sometimes resets value to previous value after change
2 participants