From 261dc928312c1cf9bd4fadae9832a816479f1adc Mon Sep 17 00:00:00 2001 From: WK Wong Date: Wed, 25 Sep 2024 00:44:45 +0800 Subject: [PATCH] fix(image): add missing `w` to `getWrapperProps` dependency --- 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 c0e18fa0a1..2fb45628b8 100644 --- a/packages/components/image/src/use-image.ts +++ b/packages/components/image/src/use-image.ts @@ -188,7 +188,7 @@ export function useImage(originalProps: UseImageProps) { maxWidth: w, }, }; - }, [slots, showFallback, fallbackSrc, classNames?.wrapper]); + }, [slots, showFallback, fallbackSrc, classNames?.wrapper, w]); const getBlurredImgProps = useCallback(() => { return {