@7shifts/sous-chef 3.31.1-beta2 → 3.31.1-beta3
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 +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9142,9 +9142,6 @@ var DateField = function DateField(_ref) {
|
|
|
9142
9142
|
onFocus: function onFocus(e) {
|
|
9143
9143
|
setShowCalendar(true);
|
|
9144
9144
|
maskfy(e.target);
|
|
9145
|
-
setTimeout(function () {
|
|
9146
|
-
e.target.setSelectionRange(0, 0);
|
|
9147
|
-
}, 10);
|
|
9148
9145
|
},
|
|
9149
9146
|
onClick: function onClick() {
|
|
9150
9147
|
return setShowCalendar(true);
|
|
@@ -9157,7 +9154,13 @@ var DateField = function DateField(_ref) {
|
|
|
9157
9154
|
controllers.onChange(parsedDate);
|
|
9158
9155
|
}
|
|
9159
9156
|
},
|
|
9160
|
-
onBlur:
|
|
9157
|
+
onBlur: function onBlur(event) {
|
|
9158
|
+
var parsedDate = parseDate(event.target.value, format);
|
|
9159
|
+
if (!parsedDate) {
|
|
9160
|
+
controllers.onChange(undefined);
|
|
9161
|
+
}
|
|
9162
|
+
controllers.onBlur();
|
|
9163
|
+
},
|
|
9161
9164
|
defaultValue: getDefaultValue()
|
|
9162
9165
|
})), showCalendar && React__default.createElement(Calendar, {
|
|
9163
9166
|
onSelect: function onSelect(date) {
|