Closed tbordinat closed 3 years ago
I have try, and work with auto-apply
is false
this my code
<litepie-datepicker
:formatter="formatter"
:auto-apply="false"
:shortcuts="shortcuts"
v-model="dateValue"
>
</litepie-datepicker>
My bad, the problem occurs when it's set to true (default value in my case).
When I click on "7 derniers jours", it's impossible to submit the new period, I can just cancel, or choose dates on the calendar.
when auto-apply
is true
,
if you click shortcut, v-model
has updated with your selection.
you can changing button cancel
with new props footer
, read here.
Thank you
I'll close this issue. Please open new issues if any related issues.
With this fix in 1.0.9, it's ok !
Fix bug auto-apply if shortcuts clicked.
On mobile, when using customShortcuts, it's impossible to apply changes when autoApply is set to false.
It could be great to set dates directly and submitting it.
Here is the code of my shortcuts, maybe I missed something :