Commit 6a9263e19850f93546ffc86f075ff4cef29126e6
Committed by
GitHub
![](/assets/no_avatar-fd406ccede8cb1881f20921c8bfa169b.png)
Merge pull request #1837 from lepture/patch-1
Rollback #968
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
src/components/form/form.vue
1 | <template> | 1 | <template> |
2 | - <form :class="classes" @submit="formSubmit"><slot></slot></form> | 2 | + <form :class="classes"><slot></slot></form> |
3 | </template> | 3 | </template> |
4 | <script> | 4 | <script> |
5 | // https://github.com/ElemeFE/element/blob/dev/packages/form/src/form.vue | 5 | // https://github.com/ElemeFE/element/blob/dev/packages/form/src/form.vue |
@@ -75,9 +75,6 @@ | @@ -75,9 +75,6 @@ | ||
75 | if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); } | 75 | if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); } |
76 | 76 | ||
77 | field.validate('', cb); | 77 | field.validate('', cb); |
78 | - }, | ||
79 | - formSubmit (event) { | ||
80 | - event.preventDefault(); | ||
81 | } | 78 | } |
82 | }, | 79 | }, |
83 | watch: { | 80 | watch: { |