Commit 952eea467a25d1043f5e1d39d8489a6fe51e850f

Authored by Hsiaoming Yang
Committed by GitHub
1 parent 502c99f8

Rollback #968

If you want to prevent submit, use this instead:

```
<Form @submit.native.prevent>
```
Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
src/components/form/form.vue
1 1 <template>
2   - <form :class="classes" @submit="formSubmit"><slot></slot></form>
  2 + <form :class="classes"><slot></slot></form>
3 3 </template>
4 4 <script>
5 5 // https://github.com/ElemeFE/element/blob/dev/packages/form/src/form.vue
... ... @@ -75,9 +75,6 @@
75 75 if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); }
76 76  
77 77 field.validate('', cb);
78   - },
79   - formSubmit (event) {
80   - event.preventDefault();
81 78 }
82 79 },
83 80 watch: {
... ...