From e59d2d17f9ef278c01de598bcfcc793ccce5875a Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 29 Jan 2024 01:10:41 +0800 Subject: [PATCH] Revert "Hide search history dropdown on input blur" --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/components/SearchBar/SearchBar.vue | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cd010744..e3d3b9fb 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "postinstall": "npx simple-git-hooks" }, "dependencies": { + "@types/md5": "^2.3.5", "dplayer": "^1.27.1", "md5": "^2.3.0", "mitt": "^3.0.1", @@ -51,7 +52,6 @@ "@iconify/vue": "^4.1.1", "@intlify/unplugin-vue-i18n": "^0.8.2", "@rollup/plugin-replace": "^5.0.5", - "@types/md5": "^2.3.5", "@types/dplayer": "^1.25.5", "@types/fs-extra": "^9.0.13", "@types/node": "^18.18.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc2ba82f..d645930f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@types/md5': + specifier: ^2.3.5 + version: 2.3.5 dplayer: specifier: ^1.27.1 version: 1.27.1 @@ -61,9 +64,6 @@ devDependencies: '@types/fs-extra': specifier: ^9.0.13 version: 9.0.13 - '@types/md5': - specifier: ^2.3.5 - version: 2.3.5 '@types/node': specifier: ^18.18.10 version: 18.19.6 @@ -1258,7 +1258,7 @@ packages: /@types/md5@2.3.5: resolution: {integrity: sha512-/i42wjYNgE6wf0j2bcTX6kuowmdL/6PE4IVitMpm2eYKBUuYCprdcWVK+xEF0gcV6ufMCRhtxmReGfc6hIK7Jw==} - dev: true + dev: false /@types/mdast@3.0.15: resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==} diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index 351e81e9..e1766e71 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -173,7 +173,6 @@ async function handleClearSearchHistory() { ring="1 $bew-border-color" transition="all duration-300" type="text" - @blur="isFocus = false" @focus="isFocus = true" @input="handleInput" @keyup.enter.stop.passive="navigateToSearchResultPage(keyword)"