Skip to content

Commit

Permalink
fix: 修复 condition-builder 操作符只有一个时不可以点选的问题 (baidu#9439)
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jan 16, 2024
1 parent f5804b8 commit 9cc9a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-ui/src/components/condition-builder/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class ConditionItem extends React.Component<ConditionItemProps> {
return (
<PopOverContainer
mobileUI={mobileUI}
disabled={operators.length < 2}
disabled={!!(value?.op && operators.length < 2)}
popOverContainer={popOverContainer || (() => findDOMNode(this))}
popOverRender={({onClose}) => (
<GroupedSelection
Expand Down

0 comments on commit 9cc9a72

Please sign in to comment.