Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar: Input value is not updated when model is changed externally #4938

Closed
koljada opened this issue Dec 7, 2023 · 1 comment
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@koljada
Copy link

koljada commented Dec 7, 2023

Describe the bug

When v-model is changed outside of calendar component (programmatically) then an input still shows previous value. It gets updated when opening the calendar next time.

Reproducer

https://codesandbox.io/p/devbox/adoring-ellis-4kgr47

PrimeVue version

3.42.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Edge 119.0.2151.97

Steps to reproduce the behavior

  1. Open the calendar.
  2. Click 'This month' button in footer. Notice that selected dates are displayed correctly.
  3. Close the calendar.
  4. Observe: input value is not updated (different from model value).
  5. Open and close the calendar without changing dates.
  6. Observe: input value is now updated.

Expected behavior

Input value is updated whenever model is changed, just like it is when model is changed from within the calendar

@koljada koljada added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 7, 2023
@mertsincan
Copy link
Member

Thanks a lot for your report! I set a milestone for it. We'll fix it before the milestone is released.

@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 30, 2024
@mertsincan mertsincan added this to the 3.50.0 milestone Jan 30, 2024
@tugcekucukoglu tugcekucukoglu modified the milestones: 3.50.0, 3.52.0 Mar 15, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants