From 956b7710b15ac456bfdd6c630cdaa49c8610ba14 Mon Sep 17 00:00:00 2001 From: Zeel Shah Date: Mon, 7 Oct 2019 23:10:43 +0530 Subject: [PATCH] fixed #153 --- dist/main.js | 3 +-- src/main.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dist/main.js b/dist/main.js index 5fa7509..a36c196 100644 --- a/dist/main.js +++ b/dist/main.js @@ -71,7 +71,7 @@ function (_Component) { } else { // check if isValidated was exposed in the step, if yes then set initial state as not validated (false) or vice versa // if HOCValidation is used for the step then mark it as "requires to be validated. i.e. false" - i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && _this2.isStepAtIndexHOCValidationBased(idx) ? false : true; + i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && !_this2.isStepAtIndexHOCValidationBased(idx) ? false : true; } return i; @@ -94,7 +94,6 @@ function (_Component) { } return { - current: indx, styles: styles }; } diff --git a/src/main.js b/src/main.js index 973cf3c..e1adaca 100644 --- a/src/main.js +++ b/src/main.js @@ -29,7 +29,7 @@ export default class StepZilla extends Component { } else { // check if isValidated was exposed in the step, if yes then set initial state as not validated (false) or vice versa // if HOCValidation is used for the step then mark it as "requires to be validated. i.e. false" - i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && this.isStepAtIndexHOCValidationBased(idx) ? false : true; + i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && !this.isStepAtIndexHOCValidationBased(idx) ? false : true; } return i; @@ -50,7 +50,7 @@ export default class StepZilla extends Component { } } - return { current: indx, styles }; + return { styles }; } getPrevNextBtnLayout(currentStep) {