diff --git a/packages/amis-editor-core/scss/control/_tpl-formula-control.scss b/packages/amis-editor-core/scss/control/_tpl-formula-control.scss index ae6cf4d94..1d5b4edd7 100644 --- a/packages/amis-editor-core/scss/control/_tpl-formula-control.scss +++ b/packages/amis-editor-core/scss/control/_tpl-formula-control.scss @@ -100,7 +100,8 @@ &-buttonWrapper { height: auto; } - &-button { + &-button, + &-buttonWrapper-button { height: 100%; background-color: #f7f7f9; padding: 4px 8px; diff --git a/packages/amis-ui/src/components/formula/VariableList.tsx b/packages/amis-ui/src/components/formula/VariableList.tsx index 86a9cac63..bb5432b39 100644 --- a/packages/amis-ui/src/components/formula/VariableList.tsx +++ b/packages/amis-ui/src/components/formula/VariableList.tsx @@ -286,7 +286,7 @@ function VariableList(props: VariableListProps) { } function handleChange(item: any) { - if (item.isMember || item.memberDepth !== undefined) { + if (item.isMember || item.memberDepth !== undefined || !item.value) { return; } onSelect?.(item);