mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 06:46:40 +08:00
Fix: Fixed the issue where the initial value of the slice method was not displayed in the dialog box #3221 (#8354)
### What problem does this PR solve? Fix: Fixed the issue where the initial value of the slice method was not displayed in the dialog box #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -224,14 +224,14 @@ export const RAGFlowSelect = forwardRef<
|
||||
allowClear,
|
||||
placeholder,
|
||||
contentProps = {},
|
||||
defaultValue,
|
||||
// defaultValue,
|
||||
triggerClassName,
|
||||
onlyShowSelectedIcon = false,
|
||||
},
|
||||
ref,
|
||||
) {
|
||||
const [key, setKey] = React.useState(+new Date());
|
||||
const [value, setValue] = React.useState<string | undefined>(defaultValue);
|
||||
const [value, setValue] = React.useState<string | undefined>(initialValue);
|
||||
|
||||
const FormControlWidget = FormControlComponent
|
||||
? FormControlComponent
|
||||
|
||||
Reference in New Issue
Block a user