From de7344b192ad7f602808bd73f8f198aa96124e77 Mon Sep 17 00:00:00 2001 From: alwayrun Date: Fri, 24 May 2024 20:28:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=89=A9=E6=96=99?= =?UTF-8?q?=E9=A2=98=E5=9E=8B=E9=80=9A=E7=94=A8=E7=BB=84=E4=BB=B6=20BaseCh?= =?UTF-8?q?oice=20=E5=8D=95=E9=80=89=E7=B1=BB=E5=9E=8B=E9=A2=98=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=A7=A6=E5=8F=91=20change=20=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#164)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/materials/questions/widgets/BaseChoice/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/materials/questions/widgets/BaseChoice/index.jsx b/web/src/materials/questions/widgets/BaseChoice/index.jsx index efc6d270..3aba05c8 100644 --- a/web/src/materials/questions/widgets/BaseChoice/index.jsx +++ b/web/src/materials/questions/widgets/BaseChoice/index.jsx @@ -64,7 +64,10 @@ export default defineComponent({ const onRadioClick = (item, $event) => { $event && $event.stopPropagation() $event && $event.preventDefault() - emit('change', item.hash) + + if (!isChecked(item)) { + emit('change', item.hash) + } } const onCheckboxClick = (item, $event) => { $event && $event.stopPropagation()