From ef4043b07c7ff22acd8a116890732492a741e768 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sun, 26 Dec 2021 13:48:02 -0300 Subject: [PATCH] Add auto select --- static/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/index.js b/static/index.js index ab61396..c88293c 100644 --- a/static/index.js +++ b/static/index.js @@ -16,6 +16,11 @@ searchBar.autocomplete({ } }); +let bar = $('#search-bar') +bar.click((e) => { + bar[0].select(); +}); + $('#search-form').on('submit', (e) => { e.preventDefault();