From ba8973c5931788798476efcb8684a46f8830fb6f Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Tue, 7 Jan 2025 17:19:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8Cfix:=20QSelectBox=20options=20?= =?UTF-8?q?=EB=82=B4=EC=9A=A9=20=EC=97=86=EC=9D=84=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Playground.jsx | 3 +++ src/components/common/select/QSelectBox.jsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx index d84f99c5..64aeab0f 100644 --- a/src/components/Playground.jsx +++ b/src/components/Playground.jsx @@ -536,6 +536,9 @@ export default function Playground() {
+
+ +
diff --git a/src/components/common/select/QSelectBox.jsx b/src/components/common/select/QSelectBox.jsx index 7be890b9..ece8b1bf 100644 --- a/src/components/common/select/QSelectBox.jsx +++ b/src/components/common/select/QSelectBox.jsx @@ -33,6 +33,7 @@ export default function QSelectBox({ * @returns {string} 초기 상태 */ const handleInitState = () => { + if (options.length === 0) return title !== '' ? title : '선택하세요.' if (showKey !== '' && !value) { //value가 없으면 showKey가 있으면 우선 보여준다 return options[0][showKey]