From e77f9b9be20e8cf6aad52c761395d58d716bfa45 Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Tue, 19 Dec 2023 20:57:50 +0100
Subject: [PATCH] [MIRROR] Fixes image onclick [No gbp] [MDB IGNORE] (#25735)
* Fixes image onclick [No gbp] (#80441)
## About The Pull Request
Noticed by @ stylemistake: onClick event was not being passed into image
component
## Why It's Good For The Game
Bug fixes
## Changelog
:cl:
fix: Emojipedia should copy the text on click properly, now
/:cl:
* Fixes image onclick [No gbp]
---------
Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
---
tgui/packages/tgui/components/Image.tsx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tgui/packages/tgui/components/Image.tsx b/tgui/packages/tgui/components/Image.tsx
index 82fef68993e..33a3850089c 100644
--- a/tgui/packages/tgui/components/Image.tsx
+++ b/tgui/packages/tgui/components/Image.tsx
@@ -32,13 +32,14 @@ export const Image = (props: Props) => {
...rest
} = props;
- const computedStyle = {
- ...computeBoxProps(rest).style,
+ const computedProps = computeBoxProps(rest);
+ computedProps['style'] = {
+ ...computedProps.style,
'-ms-interpolation-mode': fixBlur ? 'nearest-neighbor' : 'auto',
objectFit,
};
- let content = ;
+ let content = ;
if (tooltip) {
content = {content};