[fix] Text can't be selected when using simple theme with JS enabled

Closes: https://github.com/searxng/searxng/issues/794
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2022-03-20 19:30:55 +01:00
parent 728b2b5796
commit 022479d4c2
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ searxng.ready(function () {
return resultElement && resultElement.classList.contains('result-images');
}
searxng.on('.result', 'click', function (e) {
searxng.on('.result', 'mousedown', function (e) {
if (!isElementInDetail(e.target)) {
highlightResult(this)(true);
let resultElement = getResultElement(e.target);