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: does not displays up-to-date value if date is manually entered #6984

Closed
avasuro opened this issue Aug 5, 2024 · 1 comment · Fixed by #6986 or leoo1992/GeradorQRCode#85 · May be fixed by mtech-31-quemistry/quemistry_client_web#20
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@avasuro
Copy link
Contributor

avasuro commented Aug 5, 2024

Describe the bug

If date is manually changed in Calendar (manually type date in date input), and then it got changed by some external code, e.g. "reset" button, then calendar still displays old value (the one that was entered manually).

Reproducer

https://codesandbox.io/p/sandbox/hopeful-moon-6q66wq

System Information

System:
OS: Windows 11 10.0.22621
CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-1235U
Memory: 1.28 GB / 15.71 GB
Binaries:
Node: 18.20.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
npmPackages:
primereact: 10.7.0 => 10.7.0
react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

In the demo above:

  1. Click on "calendar" icon and pick some date in date picker - new date will appear in date input
  2. Click on "reset" button - pay attention that date is empty now (this is expected)
  3. Now enter the same date as in step 1 but manually (type it inside input)
  4. Click on "reset" button - pay attention that date in date input will not change

Expected: date input should become empty, the same way as in step 2.

Expected behavior

Calendar should correctly sync displayed date in date input with the date passed in props.

@avasuro avasuro added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 5, 2024
@melloware
Copy link
Member

@avasuro is this one also related can you check: #4134

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 5, 2024
@melloware melloware added this to the 10.8.1 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment