pebble-web 2.26.1-alpha.0 → 2.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3110,20 +3110,23 @@ class RadioGroup extends PureComponent {
3110
3110
  disabled,
3111
3111
  testId
3112
3112
  } = this.props;
3113
- const testIds = getTestIds(testId, getRadioGroupTestIds);
3113
+ const {
3114
+ optionId
3115
+ } = getTestIds(testId, getRadioGroupTestIds);
3114
3116
  const _children = Children.map(children, (_radio, i) => {
3115
3117
  const radio = _radio;
3116
3118
  return cloneElement(radio, {
3117
3119
  onChange: this.handleChange,
3118
3120
  checked: selected === radio.props.value,
3119
3121
  disabled,
3120
- testId: testIds.optionId ? getOptionTestId(testIds.optionId, i) : undefined
3122
+ testId: optionId ? getOptionTestId(optionId, i) : undefined
3121
3123
  });
3122
3124
  });
3123
3125
  return /*#__PURE__*/createElement("div", {
3124
3126
  role: "radiogroup",
3125
3127
  "aria-label": name,
3126
- className: className
3128
+ className: className,
3129
+ "data-testid": testId
3127
3130
  }, _children);
3128
3131
  }
3129
3132
  }