From df924d18f151deba72ba84780add6b07d212c612 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 May 2023 16:29:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E3=83=81=E3=83=A3=E3=83=B3?= =?UTF-8?q?=E3=83=8D=E3=83=AB=E5=86=85=E3=81=AE=E6=A4=9C=E7=B4=A2=E3=83=9C?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=B9=E3=81=8C=E6=8C=99=E5=8B=95=E4=B8=8D?= =?UTF-8?q?=E5=AF=A9=E3=81=AA=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10793 --- CHANGELOG.md | 1 + packages/frontend/src/pages/channel.vue | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45fce4977..1533dd32b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ ### Client - Fix: ブラーエフェクトを有効にしている状態で高負荷になる問題を修正 - Fix: カラーバーがリプライには表示されないのを修正 +- Fix: チャンネル内の検索ボックスが挙動不審な問題を修正 ### Server - センシティブワードの登録にAnd、正規表現が使用できるようになりました。 diff --git a/packages/frontend/src/pages/channel.vue b/packages/frontend/src/pages/channel.vue index af1b4d205..9aa564a7d 100644 --- a/packages/frontend/src/pages/channel.vue +++ b/packages/frontend/src/pages/channel.vue @@ -46,7 +46,7 @@ {{ i18n.ts.search }} - + @@ -93,6 +93,7 @@ let channel = $ref(null); let favorited = $ref(false); let searchQuery = $ref(''); let searchPagination = $ref(); +let searchKey = $ref(''); const featuredPagination = $computed(() => ({ endpoint: 'notes/featured' as const, limit: 10, @@ -149,10 +150,12 @@ async function search() { endpoint: 'notes/search', limit: 10, params: { - query: searchQuery, + query: query, channelId: channel.id, }, }; + + searchKey = query; } const headerActions = $computed(() => {