Merge pull request #17318 from backstage/blam/scaffolder/next/fixes
scaffolder/next: validation feedback
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-scaffolder-react': patch
|
||||
---
|
||||
|
||||
Add indication that the validators are running
|
||||
Add an indication that the validators are running when clicking `next` on each step of the form.
|
||||
|
||||
@@ -135,6 +135,8 @@ export const Stepper = (stepperProps: StepperProps) => {
|
||||
}: {
|
||||
formData?: Record<string, JsonValue>;
|
||||
}) => {
|
||||
// The validation should never throw, as the validators are wrapped in a try/catch.
|
||||
// This makes it fine to set and unset state without try/catch.
|
||||
setErrors(undefined);
|
||||
setIsValidating(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user