@thecb/components 8.4.10-beta.1 → 8.4.10-beta.3

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.
package/dist/index.cjs.js CHANGED
@@ -27118,17 +27118,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27118
27118
  }).includes(field.rawValue);
27119
27119
 
27120
27120
  if (selectionExistsInConfig) {
27121
- if (field.rawValue === value) {
27122
- return true;
27123
- }
27124
- } else {
27125
- if (idx === 0) {
27126
- // fallback to first option as default selection
27127
- return true;
27128
- }
27129
- }
27121
+ // if exists, selection comes from the redux-freeform state
27122
+ return field.rawValue === value;
27123
+ } // fallback to first option as default selection
27130
27124
 
27131
- return false;
27125
+
27126
+ return idx === 0;
27132
27127
  };
27133
27128
 
27134
27129
  return /*#__PURE__*/React__default.createElement(InputAndLabelContainer, {