kui-complex 0.0.93 → 0.0.95
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/DesktopInputWithMonthPicker/cjs/index.js +3 -1
- package/DesktopInputWithMonthPicker/cjs/index.js.map +1 -1
- package/DesktopInputWithMonthPicker/index.js +3 -1
- package/DesktopInputWithMonthPicker/index.js.map +1 -1
- package/InputWithMonthPicker/cjs/index.js +3 -1
- package/InputWithMonthPicker/cjs/index.js.map +1 -1
- package/InputWithMonthPicker/index.js +3 -1
- package/InputWithMonthPicker/index.js.map +1 -1
- package/TestForm/cjs/index.js +3 -1
- package/TestForm/cjs/index.js.map +1 -1
- package/TestForm/index.js +3 -1
- package/TestForm/index.js.map +1 -1
- package/cjs/index.js +3 -1
- package/cjs/index.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -490,11 +490,13 @@ var StyledHeader = styled__default["default"](kuiBasic.Grid)(templateObject_2$j
|
|
|
490
490
|
var templateObject_1$u, templateObject_2$j;
|
|
491
491
|
|
|
492
492
|
var DesktopInputWithMonthPicker = React.forwardRef(function (_a, ref) {
|
|
493
|
-
var name = _a.name, form = _a.form, disabled = _a.disabled, datePickerProps = _a.datePickerProps, otherProps = __rest(_a, ["name", "form", "disabled", "datePickerProps"]);
|
|
493
|
+
var name = _a.name, form = _a.form, disabled = _a.disabled, datePickerProps = _a.datePickerProps, onChange = _a.onChange, otherProps = __rest(_a, ["name", "form", "disabled", "datePickerProps", "onChange"]);
|
|
494
494
|
var _b = React.useState(), changedValue = _b[0], setChangedValue = _b[1];
|
|
495
495
|
var handleChange = function (date, field) {
|
|
496
496
|
field.onChange(date);
|
|
497
497
|
setChangedValue(date);
|
|
498
|
+
if (onChange)
|
|
499
|
+
onChange(date);
|
|
498
500
|
};
|
|
499
501
|
return (jsxRuntime.jsx(Wrapper$4, __assign({ ref: ref }, { children: jsxRuntime.jsx(reactHookForm.Controller, { name: name, control: form.control, render: function (_a) {
|
|
500
502
|
var _b;
|