Skip to content

altField contains only date after init in inline mode (attached to a div) #455

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

Closed
wants to merge 4 commits into from

Conversation

arnaudbreton
Copy link

Hi,

At init, in inline mode, the altField only contains the date but not the time.
Going step by step in the code shown me that it's because the "_updateAlternate" method is used by the original datepicker.

I overrided it (another hack...) and added the time. The code is inspired by the _updateDateTime original method.

@trentrichardson
Copy link
Owner

Thanks for your contribution. Looks like though you sent the pull request to dev (v1.0.4) but your changes were on the master branch (v1.0.3). Would you be willing to apply this same change to dev and issue a pull request?

Also, I see your change was to fix for inline, does this have any effect on standard non-inline datetimepickers?

@trentrichardson
Copy link
Owner

This has been added to dev, Thanks!

@arnaudbreton
Copy link
Author

Cool! Glad I could help you to fix this issue.

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