added isDisabled to menu toggle (#32202)
fixes: #32156 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
b13a816504
commit
b287ab7f6d
2 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ export const SingleSelect = ({
|
||||||
maxHeight,
|
maxHeight,
|
||||||
toggleIcon,
|
toggleIcon,
|
||||||
className,
|
className,
|
||||||
|
isDisabled,
|
||||||
children,
|
children,
|
||||||
...props
|
...props
|
||||||
}: SingleSelectProps) => {
|
}: SingleSelectProps) => {
|
||||||
|
@ -69,6 +70,7 @@ export const SingleSelect = ({
|
||||||
isExpanded={isOpen}
|
isExpanded={isOpen}
|
||||||
aria-label={props["aria-label"]}
|
aria-label={props["aria-label"]}
|
||||||
icon={toggleIcon}
|
icon={toggleIcon}
|
||||||
|
isDisabled={isDisabled}
|
||||||
isFullWidth
|
isFullWidth
|
||||||
>
|
>
|
||||||
{childArray.find((c) => c.props.value === selections)?.props
|
{childArray.find((c) => c.props.value === selections)?.props
|
||||||
|
|
|
@ -37,6 +37,7 @@ export const TypeaheadSelect = ({
|
||||||
chipGroupComponent,
|
chipGroupComponent,
|
||||||
chipGroupProps,
|
chipGroupProps,
|
||||||
footer,
|
footer,
|
||||||
|
isDisabled,
|
||||||
children,
|
children,
|
||||||
...rest
|
...rest
|
||||||
}: KeycloakSelectProps) => {
|
}: KeycloakSelectProps) => {
|
||||||
|
@ -124,6 +125,7 @@ export const TypeaheadSelect = ({
|
||||||
variant="typeahead"
|
variant="typeahead"
|
||||||
onClick={() => onToggle?.(true)}
|
onClick={() => onToggle?.(true)}
|
||||||
icon={toggleIcon}
|
icon={toggleIcon}
|
||||||
|
isDisabled={isDisabled}
|
||||||
isExpanded={rest.isOpen}
|
isExpanded={rest.isOpen}
|
||||||
isFullWidth
|
isFullWidth
|
||||||
status={validated === "error" ? MenuToggleStatus.danger : undefined}
|
status={validated === "error" ? MenuToggleStatus.danger : undefined}
|
||||||
|
|
Loading…
Reference in a new issue