From effbe242bcf3390515eab21fbf32435a282c41fd Mon Sep 17 00:00:00 2001 From: Faruk ALKAYA Date: Mon, 4 Jan 2021 16:32:03 +0300 Subject: [PATCH] Update material-bootstrap-wizard.js Bug fixed: when moving to the previous tab validaton shouldn't work. Because it's not "next" action. --- assets/js/material-bootstrap-wizard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/material-bootstrap-wizard.js b/assets/js/material-bootstrap-wizard.js index bb01006..4560355 100644 --- a/assets/js/material-bootstrap-wizard.js +++ b/assets/js/material-bootstrap-wizard.js @@ -76,7 +76,10 @@ $(document).ready(function(){ $('.moving-tab').css('transition','transform 0s'); }, - onTabClick : function(tab, navigation, index){ + onTabClick : function(tab, navigation, index, nextIndex){ + if (nextIndex <= index) { + return; + } var $valid = $('.wizard-card form').valid(); if(!$valid){