mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +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",
|
"version": "1.4.0-alpha.17",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true,
|
"useWorkspaces": true,
|
||||||
"npmClientArgs": [
|
"npmClientArgs": ["--ignore-engines"],
|
||||||
"--ignore-engines"
|
|
||||||
],
|
|
||||||
"command": {
|
"command": {
|
||||||
"version": {
|
"version": {
|
||||||
"forcePublish": true,
|
"forcePublish": true,
|
||||||
|
@ -173,6 +173,12 @@ DatePicker.FilterWithPicker = function FilterWithPicker(props: any) {
|
|||||||
showTime: props.showTime ? { defaultValue: dayjs('00:00:00', 'HH:mm:ss') } : false,
|
showTime: props.showTime ? { defaultValue: dayjs('00:00:00', 'HH:mm:ss') } : false,
|
||||||
format: targetFormat,
|
format: targetFormat,
|
||||||
picker: targetPicker,
|
picker: targetPicker,
|
||||||
|
onChange: (val) => {
|
||||||
|
props.onChange(undefined);
|
||||||
|
setTimeout(() => {
|
||||||
|
props.onChange(val);
|
||||||
|
});
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const field: any = useField();
|
const field: any = useField();
|
||||||
const [stateProps, setStateProps] = useState(newProps);
|
const [stateProps, setStateProps] = useState(newProps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user