carbon-react 102.8.0 → 102.8.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.
@@ -89,7 +89,7 @@ const DateRange = ({
89
89
  ...localeData
90
90
  }),
91
91
  rawValue: _date2.default.formatValue({
92
- value: getStartDate() || (!isControlled ? today : ""),
92
+ value: getStartDate() || (startDateProps.allowEmptyValue ? "" : today),
93
93
  ...localeData
94
94
  })
95
95
  });
@@ -99,7 +99,7 @@ const DateRange = ({
99
99
  ...localeData
100
100
  }),
101
101
  rawValue: _date2.default.formatValue({
102
- value: getEndDate() || (!isControlled ? today : ""),
102
+ value: getEndDate() || (endDateProps.allowEmptyValue ? "" : today),
103
103
  ...localeData
104
104
  })
105
105
  });
@@ -110,7 +110,7 @@ const DateRange = ({
110
110
  ...localeData
111
111
  }),
112
112
  rawValue: _date2.default.formatValue({
113
- value: getStartDate() || today,
113
+ value: getStartDate() || (startDateProps.allowEmptyValue ? "" : today),
114
114
  ...localeData
115
115
  })
116
116
  });
@@ -120,11 +120,11 @@ const DateRange = ({
120
120
  ...localeData
121
121
  }),
122
122
  rawValue: _date2.default.formatValue({
123
- value: getEndDate() || today,
123
+ value: getEndDate() || (endDateProps.allowEmptyValue ? "" : today),
124
124
  ...localeData
125
125
  })
126
126
  });
127
- }, [getEndDate, getStartDate, localeData, today]);
127
+ }, [getEndDate, getStartDate, endDateProps, startDateProps, localeData, today]);
128
128
 
129
129
  function usePrevious(arg) {
130
130
  const ref = (0, _react.useRef)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.8.0",
3
+ "version": "102.8.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {