Merge pull request #35176 from iamejaaz/remove-list-sidebar

pref: speed up opening of search modal
This commit is contained in:
Ejaaz Khan 2025-12-11 14:47:58 +05:30 committed by GitHub
commit a25db08e25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -43,7 +43,7 @@ defineExpose({ focus_on_label });
<div @dblclick="focus_on_label" :title="__('Double click to edit label')">
<input
v-if="editing"
class="input-text"
class="input-text bg-transparent"
ref="input_text"
:disabled="store.read_only"
type="text"

View file

@ -21,8 +21,10 @@ frappe.search.AwesomeBar = class AwesomeBar {
let search_modal = new frappe.get_modal("Search", "");
search_modal.removeClass("fade");
search_modal.on("shown.bs.modal", () => {
search_modal.find("#navbar-search").get(0).focus();
const input = search_modal.find("#navbar-search").get(0);
setTimeout(() => input.focus(), 10);
});
let search_modal_body = `<div class="align-baseline flex py-2 px-1 relative navbar-modal-wrapper">