Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validateStepsOnInit to allow only selected steps to be validated onInit #1550

Conversation

cwolf10
Copy link
Collaborator

@cwolf10 cwolf10 commented Oct 17, 2024

Description

Update sdsStepper's validateStepsOnInit input to accept an Array of ids for steps to validate. The id to pass in is the same id provided to the sds-step element. Only the steps whose id is contained in the array will be validated onInit.

If an empty array is passed in, it will be treated as if false were passed in.

Booleans passed in will continue to work as they have previously.

Motivation and Context

Resolves #1515

Type of Change (Select One and Apply Github Label)

  • Bug fix (non-breaking change which fixes an issue) -> Apply bugfix label
  • New feature (non-breaking change which adds functionality) -> Apply enhancement label
  • Breaking change (fix or feature that would cause existing functionality to change) -> Apply breaking label

Screenshots (if appropriate):

Which browsers have you tested?

  • Internet Explorer 11
  • Edge
  • Chrome
  • Firefox
  • Safari

Checklist:

Copy link

github-actions bot commented Oct 17, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-10-17 17:50 UTC

@yerramshilpa yerramshilpa merged commit abc4bca into master Oct 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate only a particular Step in stepper component during initialization
2 participants