Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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, ...
user22410104's user avatar
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: &...
Shawn Wang's user avatar
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, ...
Jeong Hansol's user avatar
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 ...
Michael's user avatar
  • 317
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> &...
Faveq's user avatar
  • 1
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 ...
dev's user avatar
  • 1
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, ...
Jamshid's user avatar
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: ...
Sarah's user avatar
  • 683
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 ...
Lek's user avatar
  • 128
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 ...
Anonymous's user avatar
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 ...
CentoKili53's user avatar
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 ...
Michael's user avatar
  • 317
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', ...
qwertyboi's user avatar
-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 ...
Dirk's user avatar
  • 1
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"> ...
dani's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
3009