From dd5cc4ce0121b0d3b524843260f60e5e270a42c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BA=91=E9=A3=9E?= Date: Sun, 16 Jan 2022 17:04:04 +0800 Subject: [PATCH] fix:spell check --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 0f4c6c4..ec08f85 100644 --- a/src/main.ts +++ b/src/main.ts @@ -482,14 +482,14 @@ window.onload = function () { } instance.command.executeSeparator(payload) } - const collspanDom = document.querySelector('.menu-item__search__collapse') + const searchCollapseDom = document.querySelector('.menu-item__search__collapse') const searchInputDom = document.querySelector('.menu-item__search__collapse__search input') document.querySelector('.menu-item__search')!.onclick = function () { console.log('search') - collspanDom!.style.display = 'block' + searchCollapseDom!.style.display = 'block' } document.querySelector('.menu-item__search__collapse span')!.onclick = function () { - collspanDom!.style.display = 'none' + searchCollapseDom!.style.display = 'none' searchInputDom!.value = '' instance.command.executeSearch(null) }