diff --git a/components/Dictionary.vue b/components/Dictionary.vue index 198fc98d2..b6f16d658 100644 --- a/components/Dictionary.vue +++ b/components/Dictionary.vue @@ -12,7 +12,7 @@ v-model:category="filter.category" :categories="config.nouns.categories" submit-button - @submit-clicked="form?.$el.scrollIntoView({ block: 'center' })" + @submit-clicked="form?.focus()" /> @@ -137,7 +137,7 @@
- +
@@ -226,6 +226,10 @@ export default defineComponent({ } await this.nounsAsyncData.execute(); }, + async reloadNouns(): Promise { + await this.nounsAsyncData.execute(); + this.form?.focus(false); + }, edit(noun: Noun): void { this.form?.edit(noun); }, diff --git a/components/InclusiveDictionary.vue b/components/InclusiveDictionary.vue index 8e1ba5cf9..e2a3b2894 100644 --- a/components/InclusiveDictionary.vue +++ b/components/InclusiveDictionary.vue @@ -12,7 +12,7 @@ v-model:category="filter.category" :categories="config.inclusive.categories" submit-button - @submit-clicked="form?.$el.scrollIntoView({ block: 'center' })" + @submit-clicked="form?.focus()" />
@@ -219,7 +219,7 @@
- +
@@ -308,6 +308,10 @@ export default defineComponent({ } await this.entriesAsyncData.execute(); }, + async reloadEntries(): Promise { + await this.entriesAsyncData.execute(); + this.form?.focus(false); + }, edit(entry: InclusiveEntry) { this.form?.edit(entry); }, diff --git a/components/InclusiveSubmitForm.vue b/components/InclusiveSubmitForm.vue index 6e3699e2c..45afed5bd 100644 --- a/components/InclusiveSubmitForm.vue +++ b/components/InclusiveSubmitForm.vue @@ -1,11 +1,11 @@