vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.81k stars 6.96k forks source link

[Bug Report] v-pagination trigger v-form submit #5212

Closed materight closed 5 years ago

materight commented 6 years ago

Versions and Environment

Vuetify: 1.2.6 Vue: 2.5.17 Browsers: Chrome69 OS: Windows 10

Steps to reproduce

Use the v-pagination component inside a v-form or form and change page

Expected Behavior

It should not trigger form submit

Reproduction Link

https://codepen.io/materight/pen/YJwgZy

soupjake commented 6 years ago

If you look at the v-data-table example with external pagination, you place the v-pagination outside of the v-data-table and sync the items within using the "pagination.sync" property. Perhaps you can do something similar with your form?

materight commented 6 years ago

Sorry, that's not what I meant. If you look at the example you will notice that the form is sent when you click on a page. I have to use the v-pagination inside a form only for displaying items, i don't need to use paginations data with the form.

soupjake commented 6 years ago

Okay so after some digging, the buttons used for the pagination component use the standard HTML

materight commented 6 years ago

You are right, thank you! I'll try to fix this and make a pull request.

KaelWD commented 5 years ago

Fixed in v1.3.3 with #5229