Add auto select

This commit is contained in:
Augusto Gunsch 2021-12-26 13:48:02 -03:00
parent 8c191041a8
commit ef4043b07c
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ searchBar.autocomplete({
} }
}); });
let bar = $('#search-bar')
bar.click((e) => {
bar[0].select();
});
$('#search-form').on('submit', (e) => { $('#search-form').on('submit', (e) => {
e.preventDefault(); e.preventDefault();