summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-05-11 16:29:34 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-05-11 16:29:34 +0900
commitdf924d18f151deba72ba84780add6b07d212c612 (patch)
treeeef2f54751e6b610fbd68a60d8bb9aa761e96a80
parentfix(frontend): カラーバーがリプライには表示されないのを... (diff)
downloadsharkey-df924d18f151deba72ba84780add6b07d212c612.tar.gz
sharkey-df924d18f151deba72ba84780add6b07d212c612.tar.bz2
sharkey-df924d18f151deba72ba84780add6b07d212c612.zip
fix(frontend): チャンネル内の検索ボックスが挙動不審な問題を修正
Fix #10793
-rw-r--r--CHANGELOG.md1
-rw-r--r--packages/frontend/src/pages/channel.vue7
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 45fce4977c..1533dd32bd 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 af1b4d2056..9aa564a7da 100644
--- a/packages/frontend/src/pages/channel.vue
+++ b/packages/frontend/src/pages/channel.vue
@@ -46,7 +46,7 @@
</MkInput>
<MkButton primary rounded style="margin-top: 8px;" @click="search()">{{ i18n.ts.search }}</MkButton>
</div>
- <MkNotes v-if="searchPagination" :key="searchQuery" :pagination="searchPagination"/>
+ <MkNotes v-if="searchPagination" :key="searchKey" :pagination="searchPagination"/>
</div>
</div>
</MkSpacer>
@@ -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(() => {