Fixed an issue where unable to change the column properties from edit dialog. Fixes #6766

This commit is contained in:
Aditya Toshniwal
2021-09-22 18:23:40 +05:30
committed by Akshay Joshi
parent a8c8ea69e3
commit a1aa080956
3 changed files with 13 additions and 13 deletions

View File

@@ -511,7 +511,7 @@ export function InputToggle({cid, value, onChange, options, disabled, readonly,
{
(options||[]).map((option)=>{
const isSelected = option.value === value;
const isDisabled = disabled || (readonly && !isSelected);
const isDisabled = disabled || option.disabled || (readonly && isSelected);
return (
<ToggleButton key={option.label} value={option.value} component={isSelected ? PrimaryButton : DefaultButton}
disabled={isDisabled} aria-label={option.label}>