2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-03 04:14:03 +03:00

#10, #12 Do not validate on back button

Watch route changes (browser back and forward)
This commit is contained in:
cristijora
2017-05-27 12:12:36 +03:00
parent 184e36abf7
commit 2b0167ff29
3 changed files with 39 additions and 9 deletions
+2 -3
View File
@@ -1,18 +1,17 @@
<template>
<div>
<form-wizard @on-complete="onComplete"
shape="circle"
shape="square"
color="gray"
@on-loading="setLoading"
@on-error="setError"
class="card" ref="wizard">
<tab-content title="Personal details"
route="/first"
:before-change="validateAsync"
icon="ti-user">
</tab-content>
<tab-content title="Additional Info"
:before-change="validate"
:before-change="validateAsync"
route="/second"
icon="ti-settings">
</tab-content>