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
@@ -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,
}}
/>
);
};