fix: flatpickr date not updating #1336

Merged
konrad merged 1 commits from fix/flatpickr-date-not-updating into main 2022-01-09 10:17:19 +00:00
Owner
Fixes https://github.com/go-vikunja/api/issues/16
konrad added 1 commit 2022-01-08 14:22:30 +00:00
Member

Hi konrad!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://1336-fixflatpickr-date-not-updating--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi konrad! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://1336-fixflatpickr-date-not-updating--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
Member

approve

**approve**
konrad merged commit 6080e49f26 into main 2022-01-09 10:17:19 +00:00
konrad deleted branch fix/flatpickr-date-not-updating 2022-01-09 10:17:19 +00:00
dpschen reviewed 2022-01-19 21:01:35 +00:00
@ -186,0 +178,4 @@
// Since flatpickr dates are strings, we need to convert them to native date objects.
// To make that work, we need a separate variable since flatpickr does not have a change event.
flatPickrDate: {
set(newValue) {

Not sure: doesn't it make sense to merge this with modelValue / setDateValue?

Not sure: doesn't it make sense to merge this with `modelValue` / `setDateValue`?
Author
Owner

The problem is iirc the conversion between the two. Flatpickr always returns a string but we want to return a date object. It would probably be doable to merge it, but this was easier.

The problem is iirc the conversion between the two. Flatpickr always returns a string but we want to return a date object. It would probably be doable to merge it, but this was easier.
dpschen marked this conversation as resolved
This repo is archived. You cannot comment on pull requests.
No description provided.