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 component doesn't respect dateFormat config value #870

Closed
dmitryrogov opened this issue Jan 19, 2021 · 0 comments
Closed

Calendar component doesn't respect dateFormat config value #870

dmitryrogov opened this issue Jan 19, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2
Milestone

Comments

@dmitryrogov
Copy link

Config ('primevue/config') contains dateFormat options to represent default date format, but Calendar component override this value by its own default value in props:

dateFormat: {
    type: String,
    default: 'mm/dd/yy'
}

and then it leads to wrong behavior in computed property:

datePattern() {
    return this.dateFormat || this.$primevue.config.locale.dateFormat;
}

primevue version in 2.3.0

@cagataycivici cagataycivici self-assigned this Jan 20, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 20, 2021
@cagataycivici cagataycivici added this to the 2.3.1 milestone Jan 20, 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 bug related to a specific component. Something about the component is not working vue2
Projects
None yet
Development

No branches or pull requests

3 participants