diff --git a/src/components/GameWindow.vue b/src/components/GameWindow.vue index 055d997..966c45c 100644 --- a/src/components/GameWindow.vue +++ b/src/components/GameWindow.vue @@ -26,6 +26,7 @@ type Team = { actions: Action[] } +const inputPlace = ref(false) const login = ref("") const password = ref("") const place = ref("") @@ -94,6 +95,7 @@ function getTeam() { } function addAction() { + inputPlace.value = true const placeValue = place.value.trim() if (placeValue === "") { place.value = "" @@ -150,7 +152,11 @@ function getGame() { // Автоматическая прокрутка при изменении items watch(actions, () => { + if (inputPlace.value === false) { + return + } scrollToBottom(); + inputPlace.value = false }, { deep: true }); let intervalId = 0 @@ -177,19 +183,16 @@ onMounted(() => { }); }); -// function formatText(text: string) { -// return text.replaceAll(' ', ' ') -// }