ui: fix pick time with change event (#501)

This commit is contained in:
panda authored and GitHub committed 2023-02-03 19:39:58 +08:00
1 parent 726d684ef2
commit 6823a1ed2e
4 files changed
+7 -5

No files matched your search

@@ -6,7 +6,7 @@ import AutoComplete from '.';
import ProblemSelectAutoCompleteFC from './components/ProblemSelectAutoComplete';
const Component = React.forwardRef<any, any>((props, ref) => {
const [value, setValue] = React.useState(props.value);
const [value, setValue] = React.useState(props.value ?? '');
return (
<ProblemSelectAutoCompleteFC
ref={ref as any}