diff options
| author | 2023-06-19 03:12:13 +0200 | |
|---|---|---|
| committer | 2023-06-19 03:12:13 +0200 | |
| commit | e97fc985e29c89b740848fef49c602995fb62f5a (patch) | |
| tree | 1706f61f8ed63bdb46964a7536316005a9b62f3f | |
| parent | Bump version (diff) | |
Fix error with select initial state
| -rw-r--r-- | src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx index 3b2b7a4..bfcb2c8 100644 --- a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx +++ b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx @@ -98,11 +98,14 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) { } value={value} > - {options.options.map(option => ( - <option key={option} value={option}> - {option} - </option> - ))} + <> + <option value="" selected disabled hidden>Select an option</option> + {options.options.map(option => ( + <option key={option} value={option}> + {option} + </option> + ))} + </> </select> ); } |