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

Navigator Calendar taking current year when yearRange property is less than current year #1793

Closed
bhavyadeevi opened this issue Feb 1, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@bhavyadeevi
Copy link

[Navigator Calendar taking current year when yearRange property is less than current year ] bug report
[Calenar should take year from year dropdown selected not current year initially] feature request
       <div className="p-field p-col-12 p-md-4">
                    <label htmlFor="navigators">Navigators</label>
                    <Calendar id="navigators" value={date6} 
                    onChange={(e) => setDate6(e.value)} monthNavigator 
                    yearNavigator yearRange="2010:2015" />
         </div>

Current behavior
If year range is less than current year when date is selected it is taking current year

Expected behavior
Year selected in Years Dropdown should be selected

Please tell us about your environment:
Ubuntu

  • React version:
    "react": "^16.13.0"

  • PrimeReact version:
    "primereact": "^5.0.1"

  • 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 ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
@mertsincan mertsincan self-assigned this Feb 4, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Feb 4, 2021
@mertsincan mertsincan added this to the 6.0.2 milestone Feb 4, 2021
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