@czi-sds/components 21.6.1 → 21.6.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.esm.js CHANGED
@@ -7880,13 +7880,11 @@ var SegmentedControl = function (props) {
7880
7880
  var isControlled = valueProp !== undefined;
7881
7881
  var value = isControlled ? valueProp : active;
7882
7882
  var handleActive = function (event, newActive) {
7883
- if (newActive !== null) {
7884
- if (!isControlled) {
7885
- setActive(newActive);
7886
- }
7887
- if (onChangeProp) {
7888
- onChangeProp(event, newActive);
7889
- }
7883
+ if (!isControlled) {
7884
+ setActive(newActive);
7885
+ }
7886
+ if (onChangeProp) {
7887
+ onChangeProp(event, newActive);
7890
7888
  }
7891
7889
  };
7892
7890
  return (jsxs(StyledSegmentedControl, __assign({ "aria-label": "Segmented Control", size: "small", value: value, exclusive: true, onChange: handleActive }, restProps, { children: [buttonDefinition.map(function (button) {