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

locale-config not working with v-model #116

Closed
DevIsShortForDevil opened this issue Jul 12, 2020 · 2 comments
Closed

locale-config not working with v-model #116

DevIsShortForDevil opened this issue Jul 12, 2020 · 2 comments

Comments

@DevIsShortForDevil
Copy link

Hello
locale-config as it shows in the document doesn't work properly alongside v-model and format attributes and display-formats often get mixed up and show the wrong format. I tested it alot and I feel when I use "fa,en" in locale it's more likely to show the jalaali format and when it's on "en,fa" it's the other way around.

<date-picker
       date-picker
        v-model="date"
        format="YYYY/MM/DD"
        locale="fa,en"
        :locale-config="{
            fa: {
             displayFormat: 'jYYYY/jMM/jDD',
             lang: { label: 'شمسی' }
            },
            en: {
                displayFormat: 'YYYY/MM/DD',
                lang: { label: 'Gregorian' }
           }
       }"
/>

is there a solution to this problem ? am I making a mistake somewhere or is this a bug ?

@talkhabi
Copy link
Owner

Hi @DevIsShortForDevil
You are right, this seems to be a bug!

@talkhabi
Copy link
Owner

Thank you for reporting this issue,
This problem was fixed in version 2.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants