Skip to content

Commit

Permalink
fix(image): add missing w to getWrapperProps dependency (#3802)
Browse files Browse the repository at this point in the history
* fix(image): add missing `w` to `getWrapperProps` dependency

* chore(changeset): add changeset
  • Loading branch information
wingkwong authored Sep 27, 2024
1 parent 606f757 commit 06c4b2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-mails-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/image": patch
---

add missing `w` to `getWrapperProps` dependency (#3801)
2 changes: 1 addition & 1 deletion packages/components/image/src/use-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PropGetter>(() => {
return {
Expand Down

0 comments on commit 06c4b2f

Please sign in to comment.