vue-pikaday icon indicating copy to clipboard operation
vue-pikaday copied to clipboard

Auto-Convert vue model value to Date

Open mvehar opened this issue 3 years ago • 1 comments

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

mvehar avatar Jan 09 '22 12:01 mvehar

Hello @mvehar, thank you for the issue report.

Please open PR with suggested changes.

NetCZ avatar Jan 12 '22 08:01 NetCZ