Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.43k stars 142 forks source link

Cannot pass `week-picker` + `range` format to `updateInternalModelValue` #813

Closed skstuder closed 5 months ago

skstuder commented 5 months ago

Describe the bug We need to fill the date picker with values, without updating the v-model value. Like a pending selection.

My plan to do this was using the updateInternalModelValue method.

When I pass the format for week-picker and range which is [[Date, Date] , [Date, Date]] I get the following error. Screenshot 2024-04-08 at 9 08 48 AM

If I pass it as [Date, Date] the function runs, but it does not know how to properly select the ranges due to the props passed.

Seems like

To Reproduce Steps to reproduce the behavior:

  1. Create a picker with week-picker and range
  2. Try to use the updateInternalModelValue function with the format of week-picker range which is [[Date, Date],[Date, Date]]
  3. Observe error