Skip to content

fix: clear content search filter when selecting shortcut#5499

Merged
boojack merged 1 commit intousememos:mainfrom
thefatcode:fix/issue-5462-search-filter-persists
Mar 4, 2026
Merged

fix: clear content search filter when selecting shortcut#5499
boojack merged 1 commit intousememos:mainfrom
thefatcode:fix/issue-5462-search-filter-persists

Conversation

@thefatcode
Copy link
Contributor

@thefatcode thefatcode commented Jan 18, 2026

Summary

Fixes #5462

Problem

After performing a search, clicking on a Shortcut keeps the previous contentSearch filter active even though the search box becomes empty. This creates confusing behavior where old search results still influence the displayed memos.

Solution

Modified `setShortcut` in `MemoFilterContext.tsx` to automatically clear any `contentSearch` filters when a shortcut is selected. This ensures only the shortcut filter takes effect.

@boojack boojack force-pushed the main branch 2 times, most recently from a196c72 to 71e8a06 Compare February 10, 2026 01:15
@boojack boojack self-requested a review as a code owner February 24, 2026 14:23
@boojack boojack force-pushed the main branch 2 times, most recently from 2b6b987 to 47d9414 Compare February 24, 2026 14:55
@boojack boojack merged commit 2c3f9e3 into usememos:main Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search filter persists after clicking Shortcuts even when search box is empty

2 participants