Grafana UI: Fix fullWidth prop (#23280)

This commit is contained in:
Alex Khomenko
2020-04-02 13:30:01 +03:00
committed by GitHub
parent b4382fff8c
commit ab283fe827

View File

@@ -49,7 +49,7 @@ export function RadioButtonGroup<T>({
disabled,
disabledOptions,
size = 'md',
fullWidth,
fullWidth = false,
}: RadioButtonGroupProps<T>) {
const handleOnChange = useCallback(
(option: SelectableValue<T>) => {
@@ -78,7 +78,7 @@ export function RadioButtonGroup<T>({
onChange={handleOnChange(o)}
id={`option-${o.value}-${id}`}
name={groupName.current}
fullWidth
fullWidth={fullWidth}
>
{o.label}
</RadioButton>