From aa44a1b6c5a4d239a30bdc765229d9e8c3588271 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Sat, 6 Jul 2024 17:31:31 +0800 Subject: [PATCH] fix(image): incorrect props --- packages/components/image/src/use-image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/image/src/use-image.ts b/packages/components/image/src/use-image.ts index 3d186e468f..c0e18fa0a1 100644 --- a/packages/components/image/src/use-image.ts +++ b/packages/components/image/src/use-image.ts @@ -167,7 +167,7 @@ export function useImage(originalProps: UseImageProps) { style: { // img has `height: auto` by default // passing the custom height here to override if it is specified - ...(props?.height && {height: h}), + ...(otherProps?.height && {height: h}), ...props.style, ...otherProps.style, },