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!"); ...
/src/pages/files.vue Why is my event listener not being added? document.getElementById("import-file")?.addEventListener("click", () => { console.log("Import File!"); ...
I'm looking for a good and reusable approach to access possible existing nested properties (nested object and array of objects) inside an error object without typeErrors. I have a createCompany form/...
I have a reusable Badge component. I want to be able to add a close/delete button when an onDelete event listener is present on the component instance. <template> <div class="flex ...
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> &...
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 ...
<script setup lang="ts"> const {a,b,c,d,e,f,g,...h} = useTest(); // useTest() return a lot of fields; </script> I don't want to list all the fields; How to use spread operator ...
I've tried to figure out what is happening with this one particular page I have as I get a list of warnings and an error every time I load it [Vue warn]: Unhandled error during execution of render ...
I am fetching markdown from a database: const state = reactive({ content: "" }) axios.get('/legal') .then(res => { const data = res.data ...
We building a vuejs app. I read a lot of issues in case of SEO pages, and the best solution is to mirgate the app to nuxtjs and create SSR SEO pages? Is this the best way or other solutions? best ...
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,...
In my Laravel 8 project I have the latest vue 3 and "laravel-mix": "^6.0.39", "laravel-mix-polyfill": "^3.0.1" installed. In my resources/js/app.js file I have ...
I want to make a method that when executed will check all inputs that have images and text, where this method will run on the input checkbox with the label Select All, which when select all is checked ...
So I'm starting to learn vue, but I can't get it to work I'm using <script setup> let cards = ref([]); const images = await axios.get('https://jsonplaceholder.typicode.com/photos').then(r =&...
So I am creating a type racing project and I want to show each alphabet in my array in html tags like div, span etc to give them different colors(styles) based on what user type(correct or incorrect)....
It is possible? So this is an extract of the graph: [ { "colorName": "yellow", "slug": "yellow", "colourDescription": &...
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="...
This dependency was not found: axios in ./src/components/history.js To install it, you can run: npm install --save axios I prepared the history.js file for the response. no matter how I try, no ...
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 ...
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' ...
Using Vue3, I've got a Datepicker component using the litepie-datepicker <template> <div class="flex"> <litepie-datepicker as-single v-model="dateValue&...
I am trying to create a specific JSON file for each component in Vue 3 using i18n. However, I could not even get i18n to read local messages. I've tried creating <i18n> blocks, adding a messages ...
I am trying to play the next song in a playlist/album after the current one has finished playing. I was able to get a song to play but it does not move to the next one after the current one finish ...
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 ...
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 <...
Copyright © 2020 vuejscode.com