From 0edaaacf4591bd243616b630a8b7fd0cdb6d1e3c Mon Sep 17 00:00:00 2001 From: Daniil Rudnov Date: Mon, 1 Apr 2024 00:52:44 +0500 Subject: [PATCH] refactor: add name attribute for 'select' and 'input' tags --- src/components/PageFooter.vue | 2 +- src/components/SelectUnitModal.vue | 1 + src/components/base/BaseCheckbox.vue | 1 + src/components/base/BaseInputNumber.vue | 10 +++++++++- src/components/base/BaseSelect.vue | 1 + src/views/CreaturesLibraryPage.vue | 1 + src/views/SendErrorPage.vue | 2 +- 7 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/PageFooter.vue b/src/components/PageFooter.vue index 166ac7e1..48d7a18f 100644 --- a/src/components/PageFooter.vue +++ b/src/components/PageFooter.vue @@ -4,7 +4,7 @@ {{ about.text || t('components.pageFooter.about') }} - diff --git a/src/components/SelectUnitModal.vue b/src/components/SelectUnitModal.vue index 6e84959c..bd9fb6f4 100644 --- a/src/components/SelectUnitModal.vue +++ b/src/components/SelectUnitModal.vue @@ -6,6 +6,7 @@ :value="search" type="text" class="search-input" + name="search-creatures" :placeholder="t('components.selectUnitModal.searchCreature')" @keyup.enter="selectFirstFounded" @input="searchCreature" diff --git a/src/components/base/BaseCheckbox.vue b/src/components/base/BaseCheckbox.vue index 182fdc61..a16865e7 100644 --- a/src/components/base/BaseCheckbox.vue +++ b/src/components/base/BaseCheckbox.vue @@ -6,6 +6,7 @@ :value="value" :checked="value" :disabled="disabled" + :name="`${label}-checkbox`" @change="$emit('change', value)" /> diff --git a/src/components/base/BaseInputNumber.vue b/src/components/base/BaseInputNumber.vue index 3cff7670..0256582a 100644 --- a/src/components/base/BaseInputNumber.vue +++ b/src/components/base/BaseInputNumber.vue @@ -1,5 +1,13 @@
- +