support minLength and maxLength properties for secret widget

Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
Stephen Glass
2024-08-23 00:54:41 -04:00
parent 3ebb64fcf1
commit 4301cbc5a8
2 changed files with 9 additions and 4 deletions
+4 -3
View File
@@ -2,6 +2,7 @@
'@backstage/plugin-scaffolder-react': patch
---
- Fix scaffolder secret widget field not displaying as required when it's listed as required.
- Fix scaffolder secret widget not able to be required inside nested objects.
- Fix scaffolder secret widget not able to be disabled.
- Fix secret widget field not displaying as required.
- Fix secret widget not able to be required inside nested objects.
- Fix secret widget not able to be disabled.
- Support `minLength` and `maxLength` properties for secret widget.
@@ -33,7 +33,7 @@ export const SecretWidget = (
const {
name,
onChange,
schema: { title },
schema: { title, minLength, maxLength },
required,
disabled,
} = props;
@@ -52,6 +52,10 @@ export const SecretWidget = (
autoComplete="off"
required={required}
disabled={disabled}
inputProps={{
minLength,
maxLength,
}}
/>
);
};