Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i click on pagination - automatically page reload (prevent page reloading issue) #602

Open
ajaypseudocode opened this issue Sep 2, 2022 · 3 comments

Comments

@ajaypseudocode
Copy link













@N-coder-bot
Copy link

Hey! I am a newbie and I would like to solve this issue. Can you please help in setting up this project on my local machine?

@gabriel0689
Copy link

Having this issue as well. When clicking the pagination dots the page reloads.

@ajaypseudocode
Copy link
Author

Hi gabriel
I am ajay, i also face the same issue , i handled this issue by added this code snippet
on mounted please add this code and check it , i think this will solve your problem
let clearIntervalTime= setInterval(()=>{
if(document.getElementsByClassName('VueCarousel-dot')){
let ele=document.getElementsByClassName('VueCarousel-dot')
ele.forEach(event=>{
event.addEventListener("click", function(event){
event.preventDefault()
});
})
clearInterval(clearIntervalTime)
}
},500)

Having this issue as well. When clicking the pagination dots the page reloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants