aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar garronej <[email protected]>2023-06-19 03:12:13 +0200
committerGravatar garronej <[email protected]>2023-06-19 03:12:13 +0200
commite97fc985e29c89b740848fef49c602995fb62f5a (patch)
tree1706f61f8ed63bdb46964a7536316005a9b62f3f
parentBump version (diff)
Fix error with select initial state
-rw-r--r--src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx13
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>
);
}