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: Can't navigate after selecting a date #4614

Closed
EdisonHarada opened this issue Oct 15, 2023 · 0 comments
Closed

Calendar: Can't navigate after selecting a date #4614

EdisonHarada opened this issue Oct 15, 2023 · 0 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@EdisonHarada
Copy link
Contributor

Describe the bug

If we use the latest version with the example from the basic usage of calendar (https://primevue.org/calendar/#basic), we get the following error:

Uncaught (in promise) ReferenceError: currentYear is not defined
    at Proxy.isMonthSelected (calendar.esm.js:411:72)
    at calendar.esm.js:2886:36
    at renderList (runtime-core.esm-bundler.js:2755:16)
    at calendar.esm.js:2863:94
    at Proxy.renderFnWithContext (runtime-core.esm-bundler.js:766:13)
    at Proxy.<anonymous> (runtime-core.esm-bundler.js:1969:72)
    at renderComponentRoot (runtime-core.esm-bundler.js:816:16)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5764:26)
    at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
    at instance.update (runtime-core.esm-bundler.js:5814:51)

The issue was caused due to this commit: c5842a2

Reproducer

https://codesandbox.io/p/sandbox/broken-meadow-ft7cfy?file=%2Fsrc%2FApp.vue%3A9%2C1

PrimeVue version

3.36.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Select any date
  2. Navigate using month or year

Expected behavior

Be able to navigate using the month picker or year picker.

@EdisonHarada EdisonHarada added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 15, 2023
@tugcekucukoglu tugcekucukoglu 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 Oct 17, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.37.0 milestone Oct 17, 2023
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

2 participants