mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
ui: fix pick time with change event (#501)
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user