Rollback #968
If you want to prevent submit, use this instead: ``` <Form @submit.native.prevent> ```
This commit is contained in:
parent
502c99f846
commit
952eea467a
1 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<form :class="classes" @submit="formSubmit"><slot></slot></form>
|
||||
<form :class="classes"><slot></slot></form>
|
||||
</template>
|
||||
<script>
|
||||
// https://github.com/ElemeFE/element/blob/dev/packages/form/src/form.vue
|
||||
|
@ -75,9 +75,6 @@
|
|||
if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); }
|
||||
|
||||
field.validate('', cb);
|
||||
},
|
||||
formSubmit (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Reference in a new issue