fix: issue when switching operators in filter button and submit date field (#5684)

This commit is contained in:
Katherine 2024-11-19 16:07:16 +08:00 committed by GitHub
parent e218bc8d16
commit 35e4f7db4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -2,9 +2,7 @@
"version": "1.4.0-alpha.17",
"npmClient": "yarn",
"useWorkspaces": true,
"npmClientArgs": [
"--ignore-engines"
],
"npmClientArgs": ["--ignore-engines"],
"command": {
"version": {
"forcePublish": true,

View File

@ -173,6 +173,12 @@ DatePicker.FilterWithPicker = function FilterWithPicker(props: any) {
showTime: props.showTime ? { defaultValue: dayjs('00:00:00', 'HH:mm:ss') } : false,
format: targetFormat,
picker: targetPicker,
onChange: (val) => {
props.onChange(undefined);
setTimeout(() => {
props.onChange(val);
});
},
};
const field: any = useField();
const [stateProps, setStateProps] = useState(newProps);