Commit ab283fe8 by Alex Khomenko Committed by GitHub

Grafana UI: Fix fullWidth prop (#23280)

parent b4382fff
...@@ -49,7 +49,7 @@ export function RadioButtonGroup<T>({ ...@@ -49,7 +49,7 @@ export function RadioButtonGroup<T>({
disabled, disabled,
disabledOptions, disabledOptions,
size = 'md', size = 'md',
fullWidth, fullWidth = false,
}: RadioButtonGroupProps<T>) { }: RadioButtonGroupProps<T>) {
const handleOnChange = useCallback( const handleOnChange = useCallback(
(option: SelectableValue<T>) => { (option: SelectableValue<T>) => {
...@@ -78,7 +78,7 @@ export function RadioButtonGroup<T>({ ...@@ -78,7 +78,7 @@ export function RadioButtonGroup<T>({
onChange={handleOnChange(o)} onChange={handleOnChange(o)}
id={`option-${o.value}-${id}`} id={`option-${o.value}-${id}`}
name={groupName.current} name={groupName.current}
fullWidth fullWidth={fullWidth}
> >
{o.label} {o.label}
</RadioButton> </RadioButton>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment