From ad408b9b2a3e24512ea05df17e469f01b6f6fcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 28 Dec 2023 10:11:32 +0800 Subject: [PATCH] =?UTF-8?q?enahnce(compo):=E6=94=B9=E5=96=84=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C=E5=9B=BE=E6=A0=87=E7=9A=84=E7=82=B9=E5=87=BB=E5=A4=84?= =?UTF-8?q?=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ActionIcon/ActionIcon.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/ActionIcon/ActionIcon.jsx b/src/components/ActionIcon/ActionIcon.jsx index 8042277..dbe3a39 100644 --- a/src/components/ActionIcon/ActionIcon.jsx +++ b/src/components/ActionIcon/ActionIcon.jsx @@ -28,6 +28,13 @@ export default function ActionIcon(props) { }, props ); + const handleClick = (e) => { + if (mergedProps.disabled) { + return; + } + mergedProps.onClick(e); + }; + return (