Skip to content

Commit

Permalink
added choose as an option to reset (keycloak#26065)
Browse files Browse the repository at this point in the history
fixes: keycloak#25939

Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit authored Jan 16, 2024
1 parent 33651c3 commit 4958d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/libs/ui-shared/src/user-profile/SelectComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ export const SelectComponent = (props: UserProfileFieldProps) => {
isDisabled={attribute.readOnly}
required={isRequired}
>
{options.map((option) => (
{["", ...options].map((option) => (
<SelectOption
selected={field.value === option}
key={option}
value={option}
>
{label(option)}
{option ? label(option) : t("choose")}
</SelectOption>
))}
</Select>
Expand Down

0 comments on commit 4958d25

Please sign in to comment.