Event Listener not added [duplicate]

/src/pages/files.vue Why is my event listener not being added? document.getElementById("import-file")?.addEventListener("click", () => { console.log("Import File!"); ...

Vue: Check if emit is passed to component

I have a reusable Badge component. I want to be able to add a close/delete button when an onDelete emit is passed by the parent component but I can't find how to check of this. <template> &...

How do I use the bootstrap datepicker in vue3

Im using vue3, and bootstrap 5. I want to add a datepicker to my app. The datepicker was in bootstrap4, but it appears to me that bootstrap5 doesn't have it. I'm suprised that its not there, I don't ...

Vue3 i18n lazy loading not loading text

I have installed i18n in vue 3 https://vue-i18n.intlify.dev/introduction.html and I want to load the json files lazy. In the app.js const i18n = createI18n({ legacy: false, globalInjection: true,...

Vue 3 computed not refreshing

I'm trying to make a login form with Vue 3, but I have difficoulties with getting a state in 'realtime' or computed. So when I try to login user from template it look like this. <button class="...

Quasar q-img inside of q-select is not visible

I am trying to do a language switcher. However, although my images are in the right location, q-img do not show anything when I get src from my options array. When I directly enter the image location ...

Problems with adding FileUpload from PrimeVue

I had a project on Vue 3. Wanted to add some tags from PrimeVue. Installed it vue npm, add code to main.js: import { createApp } from 'vue' import App from './App.vue' import router from './router' ...

Call toastr in Vue 3

I'm working in a project which is made in Laravel 8 and Vue 3. I use this toastr package: composer require yoeunes/toastr Everything works fine from Laravel Controller but the problem is I don't know ...

Add html element with an event in Vue3

I need to add series of table lines in VueJS3, each one with a button, and each button need to call a function. But the event doesn't work, neither the Firefox Tools doesn't show the event. HTML <...