Skip to content

Commit 3d75daf

Browse files
authored
Merge pull request #364 from SableClient/tiny-hoverstate-patch
tiny patch
2 parents 476ec6f + 9c73620 commit 3d75daf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/components/message/content/ImageContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ export const ImageContent = as<'div', ImageContentProps>(
204204
src: srcState.data,
205205
onLoad: handleLoad,
206206
onError: handleError,
207-
onClick: () => setViewer(true),
207+
onClick: () => {
208+
setIsHovered(false);
209+
setViewer(true);
210+
},
208211
tabIndex: 0,
209212
})}
210213
</Box>

0 commit comments

Comments
 (0)