Closed tbarkley closed 3 years ago
In the file upload demo, if you do not add label props to the FileUpload component, it will fail to render as it's unable to find this.$primevue.config
Exception (Uncaught (in promise) TypeError: Cannot read property 'locale' of undefined)
FileDemo.vue <FileUpload name="demo[]" url="./upload.php" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000"/>
<FileUpload name="demo[]" url="./upload.php" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000"/>
FileUpload.vue
chooseButtonLabel() { //fails here at this.$primevue.config return this.chooseLabel || this.$primevue.config.locale.choose; }, uploadButtonLabel() { return this.uploadLabel || this.$primevue.config.locale.upload; }, cancelButtonLabel() { return this.cancelLabel || this.$primevue.config.locale.cancel; }
try this
https://primefaces.org/primevue/showcase/#/locale
Please try PrimeVue 3.3.5
In the file upload demo, if you do not add label props to the FileUpload component, it will fail to render as it's unable to find this.$primevue.config
Exception (Uncaught (in promise) TypeError: Cannot read property 'locale' of undefined)
FileDemo.vue
<FileUpload name="demo[]" url="./upload.php" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000"/>
FileUpload.vue