Datepicker selectionMode="range": v-model disconnect when using #footer slot with preset buttons. Value shown but modelValue not updated #7159
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
I created the following PresetsDataPicker component
Based on an example on StackOverflow
https://stackoverflow.com/questions/79051313/does-primevue-4-supports-datepicker-presets
If I click the button and assign the new value (selectedDateRange.value = range.value) the value is shown in the input but update:modelValue
is not triggered. Also the overlay is not closed. There seems to be a disconnect in the v-model and the datepicker component.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
I created a fork of https://github.com/tkroonfirst8/primevue and a new branch on it but currently I am not sure how to setup a development space on this branch so I can debug my version. If somebody shows me I am happy to contribute.
Reproducer
https://bolt.new/~/primevue-4-vite-issue-template-np5wndvf
Environment
I am running this on MacOS latest in Edge Latest
Vue version
3.5.12
PrimeVue version
4.2.5.
Node version
22
Browser(s)
No response
Steps to reproduce the behavior
1 Click on the Datepicker input to open the overlay. Click on of the preset buttons. See the value being displayed in the input field.
See the value not being added to the form and see that update:modelValue is not triggered.
Expected behavior
I would expect the model to contain the selected dates as ISOString
The text was updated successfully, but these errors were encountered: