Skip to content

fixed #153 - #157

Open
zeel wants to merge 1 commit into
masterfrom
issue-153
Open

fixed #153#157
zeel wants to merge 1 commit into
masterfrom
issue-153

Conversation

@zeel

@zeel zeel commented Oct 7, 2019

Copy link
Copy Markdown
Collaborator

Fixed #153

@zeel

zeel commented Jan 8, 2020

Copy link
Copy Markdown
Collaborator Author

@newbreedofgeek Can we merge this PR?

@zeel zeel closed this Jan 8, 2020
@zeel zeel reopened this Jan 8, 2020
Comment thread src/main.js
// 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;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately does not fix it @zeel-swiggy - when you make this change it stop your jumping to Step 4, but it wont stop you from jumping to step 5 (i.e. it skips validation check for HOCValidation Step)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] stepsNavigation allows you jump past steps that need validation

3 participants