mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
8ff4bd0200
commit
cbfee5abe0
3 changed files with 6 additions and 12 deletions
|
|
@ -85,13 +85,13 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
|||
return true;
|
||||
}
|
||||
|
||||
/// #if !MOBILE
|
||||
const searchIconElement = hasClosestByAttribute(event.target, "data-type", "av-search-icon");
|
||||
if (searchIconElement) {
|
||||
const searchElement = blockElement.querySelector('input[data-type="av-search"]') as HTMLInputElement;
|
||||
searchElement.style.width = "128px";
|
||||
searchElement.style.paddingLeft = "";
|
||||
searchElement.style.paddingRight = "";
|
||||
searchElement.value = " ";
|
||||
setTimeout(() => {
|
||||
searchElement.focus();
|
||||
}, Constants.TIMEOUT_TRANSITION);
|
||||
|
|
@ -99,7 +99,6 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
|||
event.stopPropagation();
|
||||
return true;
|
||||
}
|
||||
/// #endif
|
||||
const viewItemElement = hasClosestByClassName(event.target, "item");
|
||||
if (viewItemElement && viewItemElement.parentElement.classList.contains("layout-tab-bar")) {
|
||||
if (viewItemElement.classList.contains("item--focus")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue