-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Comments
Confirmed. Need to downgrade to v3.0 to get around it for now |
V 2.3.0 |
2.3.0 umd has this issue too, _vm.locale not change to gloable config |
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 |
@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); |
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}}
The text was updated successfully, but these errors were encountered: