mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
added isDisabled to menu toggle
fixes: #32156 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> (cherry picked from commit b287ab7f6dc80f9ad07df72a44ea2ac9f9882fae)
This commit is contained in:
parent
15179146ef
commit
170c9d604b
@ -21,6 +21,7 @@ export const SingleSelect = ({
|
||||
maxHeight,
|
||||
toggleIcon,
|
||||
className,
|
||||
isDisabled,
|
||||
children,
|
||||
...props
|
||||
}: SingleSelectProps) => {
|
||||
@ -69,6 +70,7 @@ export const SingleSelect = ({
|
||||
isExpanded={isOpen}
|
||||
aria-label={props["aria-label"]}
|
||||
icon={toggleIcon}
|
||||
isDisabled={isDisabled}
|
||||
isFullWidth
|
||||
>
|
||||
{childArray.find((c) => c.props.value === selections)?.props
|
||||
|
||||
@ -37,6 +37,7 @@ export const TypeaheadSelect = ({
|
||||
chipGroupComponent,
|
||||
chipGroupProps,
|
||||
footer,
|
||||
isDisabled,
|
||||
children,
|
||||
...rest
|
||||
}: KeycloakSelectProps) => {
|
||||
@ -124,6 +125,7 @@ export const TypeaheadSelect = ({
|
||||
variant="typeahead"
|
||||
onClick={() => onToggle?.(true)}
|
||||
icon={toggleIcon}
|
||||
isDisabled={isDisabled}
|
||||
isExpanded={rest.isOpen}
|
||||
isFullWidth
|
||||
status={validated === "error" ? MenuToggleStatus.danger : undefined}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user