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:
balibabu
2025-06-18 17:24:10 +08:00
committed by GitHub
parent 1b022116d5
commit d6adcc2d50
3 changed files with 6 additions and 27 deletions

View File

@ -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