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 Overlay doesnt open with current date after value update #999

Closed
dattebayorob opened this issue Aug 27, 2019 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@dattebayorob
Copy link

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.

https://codesandbox.io/embed/primereact-test-2twbo

Current behavior
when value state is null or empty, the calendar overlay will open with current month view

Expected behavior
After the inicial state get updated, the calendar overlay open with the new date

Minimal reproduction of the problem with instructions
https://codesandbox.io/embed/primereact-test-2twbo

The first calendar, starts with null and after component mount get updated to a valid date. When focus on input the calendar overlay opens in current month
The second one starts with a date and the behavior works great

Please tell us about your environment:
Arch Linux - Visual Code

  • React version:
    16.9.0
  • PrimeReact version:
    3.1.8
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Firefox and chrome last versions
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6
@mertsincan mertsincan self-assigned this Oct 15, 2019
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Oct 15, 2019
@mertsincan mertsincan added this to the 3.2.1 milestone Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants