added isDisabled to menu toggle (#32202)

fixes: #32156

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-08-21 10:38:09 +02:00 committed by GitHub
parent b13a816504
commit b287ab7f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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}