All Questions
Tagged with javascript vue.js
45,124
questions
0
votes
0
answers
8
views
scrollTo specified position when entering page
When entering the page, I use window.scrollTo to scroll to a specified position, but it seems that the browser will scroll the page back to the top?
In a Vue3 project, I used window.scroll({top: 200, ...
0
votes
2
answers
40
views
How can I use concat to convert a dom NodeList to a array?
I found the statement [].concat(anotherArray) is not completely same to the [...anotherArray].Especially when we use it to convert NodeList.
I want to iterate a NodeList in Vue template, like this:
&...
0
votes
1
answer
25
views
"if regex.test" doesn't works properly on javascript vuejs router [duplicate]
const router = createRouter({
history: createWebHistory(),
routes,
});
// ...
const allowedToAnonymous = [
/^\/login$/g,
/^\/signup$/g,
/^\/home$/g,
/^\/emailconfirm\/[0-9a-zA-Z]{8}$/g,
...
0
votes
1
answer
27
views
Transition Issue with Layout in Nuxt 3
I am facing an issue with route transitions when conditionally disabling layouts on specific pages. I have a <NuxtPage /> in app.vue wrapped in default <NuxtLayout />, which contains a ...
0
votes
0
answers
25
views
Shadcn-vue Dialog issue
The issue is that when I click Edit or Delete, both dialogs pop up, which obiously shouldn't be the case.
<Dialog>
<Table v-if="credentialsList">
<TableCell>
&...
0
votes
0
answers
19
views
How to write a test and set a value of variable with vue-test-utils?
I have a method in my component that is triggered when the user click the button. The problem that i have is that im getting an error and i dont know what i am doing wrong.
This is the method in my ...
0
votes
0
answers
10
views
WebDataRocks setReport Blocking Main Thread with Large Datasets
I'm using WebDataRocks in my Vue 3 project to handle large datasets. My implementation works fine with smaller datasets, but when the data size increases, the setReport method blocks the main thread, ...
0
votes
1
answer
27
views
Vue Router not finding query params
Vue 3, Vue Router 4, web hash history router
I have a url with a query param that gets inserted, but Vue seems to ignore it and it's causing weird redirect issue for my application.
For example:
Is: ...
0
votes
0
answers
15
views
Use a wrapper component to provide properties and methods down the tree vue2
I have a TranslatableInput component that has a complex logic for rendering different types of input fields. I would like to create a Wrapper component that @Provide some methods/properties which I ...
0
votes
1
answer
54
views
vuejs @input is getting called only after onfocusout, i want to call it when user is typing
i am trying to use @input on input field in vuejs, but the function assigned to it gets called only after user has stopped typing and the focus is out of the input field, that means it is getting ...
0
votes
0
answers
32
views
How to create a standalone embeddable script from an internal Vue component?
I have a Vue application, and within, I have a component, which I reuse throughout the app. It's located in src/components.
I'd now like to make it so this component can be embedded into other ...
0
votes
0
answers
27
views
Implementing SwiperJs Thumb Gallery In Nuxt 3
I'm working on a Nuxt 3 project and trying to implement a SwiperJS thumbs gallery - https://swiperjs.com/demos#thumbs-gallery. I want the thumbnails to synchronize with the main slider so that ...
0
votes
1
answer
27
views
Await dispatch does not seem to be working (VueX)
I have functions createSwipe, fetchUserSwipes, and fetchSwipedUserSwipes. I call fetchUserSwipes and fetchSwipedUserSwipes inside createSwipe using these:
await dispatch('fetchSwipedUserSwipes', ...
-1
votes
1
answer
34
views
How to enable Drag and Drop in Vue/JS/HTML with an inventory system?
I want to recreate a inventory system like the one in minecraft as it is helping understand a lot of web dev stuff and just overall becoming a better developer, my code is not working and updating my ...
0
votes
1
answer
26
views
how to validate Form and Go to Next Page with vue Router
a form after validate must go to next author page with vue-Router using this code but not validate
<form @submit.prevent="validate">
<div class="row">
...