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.
@@ -3172,20 +3172,23 @@ class RadioGroup extends PureComponent {
3172
3172
  disabled,
3173
3173
  testId
3174
3174
  } = this.props;
3175
- const testIds = getTestIds(testId, getRadioGroupTestIds);
3175
+ const {
3176
+ optionId
3177
+ } = getTestIds(testId, getRadioGroupTestIds);
3176
3178
  const _children = Children.map(children, (_radio, i) => {
3177
3179
  const radio = _radio;
3178
3180
  return cloneElement(radio, {
3179
3181
  onChange: this.handleChange,
3180
3182
  checked: selected === radio.props.value,
3181
3183
  disabled,
3182
- testId: testIds.optionId ? getOptionTestId(testIds.optionId, i) : undefined
3184
+ testId: optionId ? getOptionTestId(optionId, i) : undefined
3183
3185
  });
3184
3186
  });
3185
3187
  return /*#__PURE__*/createElement("div", {
3186
3188
  role: "radiogroup",
3187
3189
  "aria-label": name,
3188
- className: className
3190
+ className: className,
3191
+ "data-testid": testId
3189
3192
  }, _children);
3190
3193
  }
3191
3194
  }