@7shifts/sous-chef 2.3.1 → 2.3.2

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.js CHANGED
@@ -4895,7 +4895,7 @@ var useDateFieldControllers = function useDateFieldControllers(_ref) {
4895
4895
  error: error,
4896
4896
  value: value,
4897
4897
  onChange: function onChange(newValue) {
4898
- return newValue && _onChange && _onChange(dateFns.startOfDay(newValue));
4898
+ return _onChange && _onChange(dateFns.isDate(newValue) ? dateFns.startOfDay(newValue) : newValue);
4899
4899
  },
4900
4900
  onBlur: function onBlur() {
4901
4901
  return _onBlur && _onBlur();