We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fe79d commit 40ec2dbCopy full SHA for 40ec2db
src/components/form/form.vue
@@ -115,13 +115,19 @@
115
}
116
},
117
methods: {
118
- submit() {
+ submit(skipValidate = false) {
119
+ this.skipValidate = skipValidate
120
dispatchEvent(this.$refs.form, 'submit')
121
+ this.skipValidate = false
122
123
reset() {
124
dispatchEvent(this.$refs.form, 'reset')
125
126
submitHandler(e) {
127
+ if (this.skipValidate) {
128
+ this.$emit(EVENT_SUBMIT, e, this.model)
129
+ return
130
+ }
131
const submited = (submitResult) => {
132
if (submitResult) {
133
this.$emit(EVENT_VALID, this.validity)
0 commit comments