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

[Bug] this.getLocale() is undefined in index.esm.js and index.js file #754

Open
jerome-smith opened this issue Aug 17, 2023 · 0 comments
Open

Comments

@jerome-smith
Copy link

Vue2-datepicker version:
3.11.1
Vue version:
2.7.10
Browser:
CHROME
Steps to reproduce
in the browser clicking on the input that launches the datepicker nothing happens;
looking at the browser console the following error is raised

this.getLocale() is undefined

Reproduction Link or Source Code
/node_modules/vue2-datepicker/index.esm.js line 1109

computed: {
    firstDayOfWeek: function firstDayOfWeek() {
      return this.getLocale().formatLocale.firstDayOfWeek || 0;
    },
    yearMonth: function yearMonth() {
      var _this$getLocale = this.getLocale(),
          yearFormat = _this$getLocale.yearFormat,
          monthBeforeYear = _this$getLocale.monthBeforeYear,
          _this$getLocale$month = _this$getLocale.monthFormat,
          monthFormat = _this$getLocale$month === void 0 ? 'MMM' : _this$getLocale$month;

Expected behavior
for this.getLocale() to be present and not be undefined;

Actual behavior
this.getLocale() is undefined

@jerome-smith jerome-smith changed the title [Bug] this.getLocale() is undefined in index.esm.js file [Bug] this.getLocale() is undefined in index.esm.js and index.js file Aug 22, 2023
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

1 participant