mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana-UI: Use value for Radio group id (#22568)
This commit is contained in:
parent
e1af933d4a
commit
c5ceae3808
@ -64,7 +64,7 @@ export function RadioButtonGroup<T>({
|
||||
|
||||
return (
|
||||
<div className={styles.radioGroup}>
|
||||
{options.map((o, i) => {
|
||||
{options.map(o => {
|
||||
const isItemDisabled = disabledOptions && o.value && disabledOptions.includes(o.value);
|
||||
return (
|
||||
<RadioButton
|
||||
@ -73,7 +73,7 @@ export function RadioButtonGroup<T>({
|
||||
active={value === o.value}
|
||||
key={o.label}
|
||||
onChange={handleOnChange(o)}
|
||||
id={`option-${i}`}
|
||||
id={`option-${o.value}`}
|
||||
name={groupName.current}
|
||||
>
|
||||
{o.label}
|
||||
|
Loading…
Reference in New Issue
Block a user