From e831b33009ec3ba68a48cec0334fb03630599b9d Mon Sep 17 00:00:00 2001 From: hamo-o Date: Sun, 9 Jun 2024 21:02:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=82=A4=EB=B3=B4=EB=93=9C=20spacebar?= =?UTF-8?q?=20=EC=84=A0=ED=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wow-ui/src/components/RadioGroup/RadioButton.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/wow-ui/src/components/RadioGroup/RadioButton.tsx b/packages/wow-ui/src/components/RadioGroup/RadioButton.tsx index a2a044bf..05c749d7 100644 --- a/packages/wow-ui/src/components/RadioGroup/RadioButton.tsx +++ b/packages/wow-ui/src/components/RadioGroup/RadioButton.tsx @@ -48,9 +48,12 @@ const RadioButton = forwardRef( (event: KeyboardEvent) => { if (event.key === " ") { setPressed(true); + if (!selected) { + group.value = value; + } } }, - [setPressed] + [setPressed, group, value, selected] ); const handleKeyUp = useCallback(