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 next month, route is called with get request and page is reloaded #1

Open
samundrawork opened this issue Feb 24, 2021 · 2 comments

Comments

@samundrawork
Copy link

No description provided.

@itsmerajshrestha
Copy link

Anyone found solution for this? I am also facing same issue.

@itsmerajshrestha
Copy link

Found solution for this issue. You can add @submit.prevent="handleSubmit" on your form which will prevent page reload issue on clicking next or prev month.


<template>
  <form @submit.prevent="handleSubmit">
    <!-- Your form fields go here -->
    
    <button type="submit">Submit</button>
  </form>
</template>

<script>
export default {
  methods: {
    handleSubmit() {
      // Your form submission logic goes here
    }
  }
};
</script>

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

2 participants