Merge pull request #35176 from iamejaaz/remove-list-sidebar
pref: speed up opening of search modal
This commit is contained in:
commit
a25db08e25
2 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue