@7shifts/sous-chef 3.63.0 → 3.63.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.
package/dist/index.js CHANGED
@@ -11595,7 +11595,13 @@ var DateField = function DateField(_ref) {
11595
11595
  }
11596
11596
  setInputValue(event.target.value);
11597
11597
  },
11598
- onBlur: controllers.onBlur,
11598
+ onBlur: function onBlur(event) {
11599
+ controllers.onBlur();
11600
+ if (event.target.value === '') {
11601
+ // @ts-expect-error the types will be changed on the next major release https://github.com/7shifts/sous-chef/pull/356
11602
+ controllers.onChange(undefined);
11603
+ }
11604
+ },
11599
11605
  maxLength: format.length,
11600
11606
  value: inputValue
11601
11607
  })), showCalendar && React__default["default"].createElement(Calendar, {