Skip to content

Calendar component doesn't respect dateFormat config value #870

Closed
@dmitryrogov

Description

@dmitryrogov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not workingvue2

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions