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

Auto-Convert vue model value to Date #187

Open
mvehar opened this issue Jan 9, 2022 · 1 comment
Open

Auto-Convert vue model value to Date #187

mvehar opened this issue Jan 9, 2022 · 1 comment

Comments

@mvehar
Copy link

mvehar commented Jan 9, 2022

Everytime the vue value changes to datetime string (api response loaded is loaded) the input is cleared.

Current solution is converting the API value to Date object before assigning to property that is loaded into Pickaday.

Proposal:
Improve function that watches external changes to check if string value is valid datetime string and convert it to Date object.
p.s. Value validation function already does that

@NetCZ
Copy link
Owner

NetCZ commented Jan 12, 2022

Hello @mvehar,
thank you for the issue report.

Please open PR with suggested changes.

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

No branches or pull requests

2 participants