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

Calender monthNavigator error monthNames #845

Closed
maydinbil61 opened this issue Jan 8, 2021 · 5 comments
Closed

Calender monthNavigator error monthNames #845

maydinbil61 opened this issue Jan 8, 2021 · 5 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2-portable
Milestone

Comments

@maydinbil61
Copy link

At calendar vue
<select class="p-datepicker-month" v-if="monthNavigator && (view !== 'month') && numberOfMonths === 1" @change="onMonthDropdownChange($event.target.value)">
{{monthName}}

I Change it :.
<select class="p-datepicker-month" v-if="monthNavigator && (view !== 'month') && numberOfMonths === 1" @change="onMonthDropdownChange($event.target.value)">
<option :value="index" v-for="(monthName, index) of $primevue.config.locale.monthNames" :key="monthName" :selected="index === month.month">{{monthName}}

@gpoontip
Copy link

gpoontip commented Jan 8, 2021

Confirmed. Need to downgrade to v3.0 to get around it for now

@maydinbil61
Copy link
Author

V 2.3.0

@west-farmer
Copy link

2.3.0 umd has this issue too, _vm.locale not change to gloable config

@aliibrahimroshan
Copy link

i am using the latest primevue ^3.1.2 . Got this error on calendar component

Uncaught (in promise) TypeError: Cannot read property 'config' of undefined
at Proxy.sundayIndex (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader-v16/dist/index.js?!./node_modules/primevue/calendar/Calendar.vue?vue&type=script&lang=js:2183)
at ComputedRefImpl.reactiveEffect [as effect] (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:71)
at ComputedRefImpl.get value [as value] (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:856)
at Object.get [as sundayIndex] (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5884)
at Object.get (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:6198)
at Proxy.getFirstDayOfMonthIndex (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader-v16/dist/index.js?!./node_modules/primevue/calendar/Calendar.vue?vue&type=script&lang=js:358)
at Proxy.months (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader-v16/dist/index.js?!./node_modules/primevue/calendar/Calendar.vue?vue&type=script&lang=js:2089)
at ComputedRefImpl.reactiveEffect [as effect] (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:71)
at ComputedRefImpl.get value [as value] (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:856)
at Object.get [as months] (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5884)

@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 3.2.0-rc.1 milestone Jan 20, 2021
@cagataycivici
Copy link
Member

@aliibrahimroshan You need to install the PrimeVue plugin in your setup;

import {createApp} from 'vue';
import PrimeVue from 'primevue/config';
const app = createApp(App);

app.use(PrimeVue);

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-portable
Projects
None yet
Development

No branches or pull requests

5 participants