mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: issue when switching operators in filter button and submit date field (#5684)
This commit is contained in:
parent
e218bc8d16
commit
35e4f7db4f
@ -2,9 +2,7 @@
|
||||
"version": "1.4.0-alpha.17",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"npmClientArgs": [
|
||||
"--ignore-engines"
|
||||
],
|
||||
"npmClientArgs": ["--ignore-engines"],
|
||||
"command": {
|
||||
"version": {
|
||||
"forcePublish": true,
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user