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

Expose flatpickr object #58

Merged
merged 2 commits into from
Mar 27, 2019
Merged

Expose flatpickr object #58

merged 2 commits into from
Mar 27, 2019

Conversation

ly2xing
Copy link
Contributor

@ly2xing ly2xing commented Mar 25, 2019

Need to manually control flatpickr instance in some situations. since the flatpickr object is private in your wrapper component I added some methods to expose a couple methods from flatpickr.

Need to manually control flatpickr instance in some situations. since the flatpickr object is private in your wrapper component I added some methods to expose a couple methods from flatpickr.
@mezoistvan
Copy link
Owner

Hi, thanks for the PR! Unfortunately this is not a good way to handle this issue, because eventually this will lead to duplicating all the flatpickr methods in the component, which is way too much code and requires too much mainteance. Making the flatpickr object public is way more easier and more maintainable.

@ly2xing
Copy link
Contributor Author

ly2xing commented Mar 26, 2019

Updated the PR. Thanks!

@ly2xing ly2xing changed the title Expose some flatpickr methods Expose flatpickr object Mar 26, 2019
@ly2xing
Copy link
Contributor Author

ly2xing commented Mar 27, 2019

@mezoistvan ping

@mezoistvan mezoistvan merged commit 4f493d7 into mezoistvan:master Mar 27, 2019
@mezoistvan
Copy link
Owner

Thanks!

@mezoistvan
Copy link
Owner

Released in v7.0.3

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.

None yet

2 participants