fix: 修复 condition-builder 操作符只有一个时不可以点选的问题 (#9439)

This commit is contained in:
liaoxuezhi 2024-01-16 11:33:50 +08:00 committed by GitHub
parent f5804b8204
commit 9cc9a72bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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