From 724813be18a10dd0e6b7806f51592bf5bdece498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 11 Feb 2026 15:28:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EC=88=98=EB=8F=99=EA=B1=B0=EB=9E=98=20?= =?UTF-8?q?=EA=B8=88=EC=95=A1=20input=20focus=20=EC=8B=9C=200=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0,=20blur=20=EC=8B=9C=20=EB=B3=B5=EC=9B=90=20(placehold?= =?UTF-8?q?er=20=ED=8C=A8=ED=84=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- resources/views/barobill/eaccount/index.blade.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/views/barobill/eaccount/index.blade.php b/resources/views/barobill/eaccount/index.blade.php index 083c291e..30edf791 100644 --- a/resources/views/barobill/eaccount/index.blade.php +++ b/resources/views/barobill/eaccount/index.blade.php @@ -1024,6 +1024,7 @@ className="flex-1 py-2 bg-emerald-600 text-white rounded-lg hover:bg-emerald-700 const [form, setForm] = useState({}); const [saving, setSaving] = useState(false); const [baseBalance, setBaseBalance] = useState(0); + const [focusedField, setFocusedField] = useState(null); const isEditMode = !!editData; @@ -1300,9 +1301,11 @@ className="text-red-600" handleAmountChange('amount', e.target.value)} - placeholder="0" + onFocus={() => setFocusedField('amount')} + onBlur={() => setFocusedField(null)} + placeholder="금액 입력" className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm focus:ring-2 focus:ring-emerald-500 outline-none text-right" /> @@ -1312,9 +1315,11 @@ className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm focus:rin handleAmountChange('balance', e.target.value)} - placeholder="0" + onFocus={() => setFocusedField('balance')} + onBlur={() => setFocusedField(null)} + placeholder="잔액" className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm focus:ring-2 focus:ring-emerald-500 outline-none text-right bg-stone-50" /> {baseBalance !== 0 && (