fix: first character entered in foreign key input is not displayed (#3770)

This commit is contained in:
katherinehhh 2024-03-20 17:27:33 +08:00 committed by GitHub
parent 556152d7c2
commit 36ce29eace
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,7 +284,7 @@ export const ForeignKey = observer(
}} }}
onChange={(value, option) => { onChange={(value, option) => {
props?.onChange?.(value); props?.onChange?.(value);
setInitialValue(option.label); setInitialValue(option.label || value);
}} }}
/> />
</div> </div>