From 59515561adcc8ce8d43249604350acb21e6c2268 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 23 Apr 2022 14:12:09 +0200 Subject: [PATCH] Do not focus the search suggestions automatically This interferes with the ability to enter a search term that is similar to a suggestion. Pressing enter would cause the suggestion to be filed in instead of submitting the value as-is. --- ts/WoltLabSuite/Core/Ui/Search/Extended.ts | 1 + .../install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ts/WoltLabSuite/Core/Ui/Search/Extended.ts b/ts/WoltLabSuite/Core/Ui/Search/Extended.ts index 59bc4b611c..0717a98cc2 100644 --- a/ts/WoltLabSuite/Core/Ui/Search/Extended.ts +++ b/ts/WoltLabSuite/Core/Ui/Search/Extended.ts @@ -69,6 +69,7 @@ export class UiSearchExtended { ajax: { className: "wcf\\data\\search\\keyword\\SearchKeywordAction", }, + autoFocus: false, }); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js index 84eacf41fd..d02a87738c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js @@ -46,6 +46,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. ajax: { className: "wcf\\data\\search\\keyword\\SearchKeywordAction", }, + autoFocus: false, }); } changeType() { -- 2.20.1