Skip to content

Commit

Permalink
fix: 修复数据绑定组件选中值回传不正确的问题(baidu#11126)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan02 committed Oct 28, 2024
1 parent 75b3e03 commit aa26eab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/amis-editor/src/renderer/DataBindingControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ export class DataBindingControl extends React.Component<

return render('content', schema!, {
onSelect: onChange,
value: value ? value.value : result
value:
value && typeof value === 'object'
? value?.selected?.value ?? value?.value
: result
});
}}
value={result}
Expand Down

0 comments on commit aa26eab

Please # to comment.