From e08d88ec3391bd02a54c0986871ed14f0f6f5030 Mon Sep 17 00:00:00 2001 From: Pandipipas <62224708+Pandipipas@users.noreply.github.com> Date: Wed, 11 Feb 2026 01:24:38 +0100 Subject: [PATCH] =?UTF-8?q?Arreglar=20selecci=C3=B3n=20de=20jugador=20exis?= =?UTF-8?q?tente=20en=20ScoreboardPanel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/components/ScoreboardPanel.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/dashboard/example/components/ScoreboardPanel.vue b/src/dashboard/example/components/ScoreboardPanel.vue index 76adba2..3889a67 100644 --- a/src/dashboard/example/components/ScoreboardPanel.vue +++ b/src/dashboard/example/components/ScoreboardPanel.vue @@ -14,6 +14,8 @@ const leftInput = ref(''); const rightInput = ref(''); const leftFocused = ref(false); const rightFocused = ref(false); +const leftIgnoreInputSync = ref(false); +const rightIgnoreInputSync = ref(false); const leftCountryInput = ref(''); const rightCountryInput = ref(''); @@ -202,6 +204,8 @@ const onLeftSelect = (playerId: string) => { return; } + leftIgnoreInputSync.value = true; + leftFocused.value = false; scoreboardStore.scoreboard.leftNameOverride = ''; leftFilter.value = ''; leftInput.value = getPlayerLabel(playerId); @@ -214,6 +218,8 @@ const onRightSelect = (playerId: string) => { return; } + rightIgnoreInputSync.value = true; + rightFocused.value = false; scoreboardStore.scoreboard.rightNameOverride = ''; rightFilter.value = ''; rightInput.value = getPlayerLabel(playerId); @@ -309,6 +315,11 @@ const saveRightSelectedPlayerChanges = () => { watch( leftInput, (value) => { + if (leftIgnoreInputSync.value) { + leftIgnoreInputSync.value = false; + return; + } + if (!leftFocused.value) { return; } @@ -323,6 +334,11 @@ watch( watch( rightInput, (value) => { + if (rightIgnoreInputSync.value) { + rightIgnoreInputSync.value = false; + return; + } + if (!rightFocused.value) { return; }