mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 10:19:59 +00:00
Always focus the search field after results have been fetched
Close #948 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
22550a60e9
commit
566d84b957
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
icon="magnify"
|
||||
type="search"
|
||||
id="search"
|
||||
ref="autocompleteSearchInput"
|
||||
:value="search"
|
||||
@input="debouncedUpdateSearchQuery"
|
||||
dir="auto"
|
||||
|
@ -276,6 +277,9 @@ const GEOHASH_DEPTH = 9; // put enough accuracy, radius will be used anyway
|
|||
update(data) {
|
||||
this.searchEvents = data.searchEvents;
|
||||
this.searchGroups = data.searchGroups;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
this.$refs.autocompleteSearchInput?.focus();
|
||||
},
|
||||
},
|
||||
currentUser: CURRENT_USER_CLIENT,
|
||||
|
@ -362,6 +366,7 @@ export default class Search extends Vue {
|
|||
|
||||
$refs!: {
|
||||
aac: FullAddressAutoComplete;
|
||||
autocompleteSearchInput: any;
|
||||
};
|
||||
|
||||
data(): Record<string, unknown> {
|
||||
|
|
Loading…
Reference in a new issue