From bf6ab8df377c62a1da39924fa51174c8adb72a2f Mon Sep 17 00:00:00 2001 From: Eiinu Date: Wed, 13 Sep 2023 09:40:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(radio):=20=E4=BF=AE=E5=A4=8D=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=86=85=20key=20=E7=9B=B8=E5=85=B3=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E3=80=901.x=E3=80=91=20(#1428)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/radio/radio.taro.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/packages/radio/radio.taro.tsx b/src/packages/radio/radio.taro.tsx index a577d3eb05..c6b4150444 100644 --- a/src/packages/radio/radio.taro.tsx +++ b/src/packages/radio/radio.taro.tsx @@ -130,9 +130,19 @@ export const Radio: FunctionComponent< return renderButton() } if (reverseState) { - return [renderLabel(), renderIcon()] + return ( + <> + {renderLabel()} + {renderIcon()} + + ) } - return [renderIcon(), renderLabel()] + return ( + <> + {renderIcon()} + {renderLabel()} + + ) } const handleClick: MouseEventHandler = (e) => { if (disabledStatement || checkedStatement) return