Commit 6a9263e19850f93546ffc86f075ff4cef29126e6

Authored by Aresn
Committed by GitHub
2 parents 502c99f8 952eea46

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: {