Skip to content

Commit

Permalink
fix: 表单项静态展示不应该自动获取展示父级value
Browse files Browse the repository at this point in the history
  • Loading branch information
jinye committed Dec 6, 2024
1 parent 5194f12 commit a4e0b86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/amis/src/renderers/Form/StaticHoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ export function supportStatic<T extends FormControlProps>() {
} = props;

let body;
const displayValue = getPropValue(props);
const displayValue = getPropValue(
props,
undefined,
props.canAccessSuperData ?? false
);
const isValueEmpty = displayValue == null || displayValue === '';

if (
Expand Down

0 comments on commit a4e0b86

Please sign in to comment.