diff --git a/src/renderers/Form/InputDate.tsx b/src/renderers/Form/InputDate.tsx index 0d20ba088..3666d0332 100644 --- a/src/renderers/Form/InputDate.tsx +++ b/src/renderers/Form/InputDate.tsx @@ -445,7 +445,7 @@ export default class DateControl extends React.PureComponent< @autobind async handleChange(nextValue: any) { const {dispatchEvent, data} = this.props; - const dispatcher = dispatchEvent('change', createObject(data, nextValue)); + const dispatcher = dispatchEvent('change', createObject(data, {value: nextValue})); if (dispatcher?.prevented) { return; } diff --git a/src/renderers/Form/InputDateRange.tsx b/src/renderers/Form/InputDateRange.tsx index 6d5b41909..0e7e82971 100644 --- a/src/renderers/Form/InputDateRange.tsx +++ b/src/renderers/Form/InputDateRange.tsx @@ -216,7 +216,7 @@ export default class DateRangeControl extends React.Component { @autobind async handleChange(nextValue: any) { const {dispatchEvent, data} = this.props; - const dispatcher = dispatchEvent('change', createObject(data, nextValue)); + const dispatcher = dispatchEvent('change', createObject(data, {value: nextValue})); if (dispatcher?.prevented) { return; }