@skedulo/sked-ui 21.7.1 → 21.7.4
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 +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18035,7 +18035,7 @@ var Datepicker = function Datepicker(_ref3) {
|
|
|
18035
18035
|
|
|
18036
18036
|
if (selectWeek && !!onWeekSelect) {
|
|
18037
18037
|
onWeekSelect(weekDates(date ? new Date(date) : date, selectedRange));
|
|
18038
|
-
} else {
|
|
18038
|
+
} else if (formatDateValue(date) !== inputDateValue || date === null) {
|
|
18039
18039
|
var parsedDate = Object(date_fns__WEBPACK_IMPORTED_MODULE_11__["parse"])(event === null || event === void 0 ? void 0 : event.target.value, dateFormat, new Date(), {
|
|
18040
18040
|
locale: localeObject
|
|
18041
18041
|
});
|
|
@@ -62109,11 +62109,14 @@ var SkedFormValidation = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
62109
62109
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SkedFormValidation, [{
|
|
62110
62110
|
key: "componentDidUpdate",
|
|
62111
62111
|
value: function componentDidUpdate(prevProps) {
|
|
62112
|
-
var
|
|
62112
|
+
var _this$props3 = this.props,
|
|
62113
|
+
initialValues = _this$props3.initialValues,
|
|
62114
|
+
options = _this$props3.options;
|
|
62113
62115
|
|
|
62114
62116
|
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(prevProps.initialValues, initialValues)) {
|
|
62115
62117
|
// eslint-disable-next-line react/no-did-update-set-state
|
|
62116
62118
|
this.setState({
|
|
62119
|
+
isFormReadonly: options.clickToEdit,
|
|
62117
62120
|
initialValues: initialValues
|
|
62118
62121
|
});
|
|
62119
62122
|
}
|