ButtonSelect: Respect isDisabled option property (#85954)

make buttonselect respect isDisabled
This commit is contained in:
Domas 2024-04-15 10:13:39 +03:00 committed by GitHub
parent 31879f1f5a
commit 54e1756b49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,6 +100,7 @@ const ButtonSelectComponent = <T,>(props: Props<T>) => {
active={item.value === value?.value}
ariaChecked={item.value === value?.value}
ariaLabel={item.ariaLabel || item.label}
disabled={item.isDisabled}
role="menuitemradio"
/>
))}