vue-repeater
vue-repeater copied to clipboard
Form is submitted when new item is submitted
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Click + icon and the form is submitted automatically.
Expected behavior The form should not be submitted
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Mac
- Browser Chrome
Additional context It looks like the Plus/Copy icon buttons are submit type buttons. So when I click plus icon then the form is submitted automatically. Is there a way to prevent form submission but repeater adds the set of form elements ?
Are these issues being tracked?
This is happening to me as well - fill out one row , click new row, fill it out again, click new row and then the entire form submits and the page loads.
for now, we can use it like this
<div onsubmit="event.preventDefault();">
<form action="">
<vue-repeater v-model="fields">
</vue-repeater>
</form>
</div>