Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 04ca0d0

Browse files
committed
clear all filters after close them
1 parent 76f5d33 commit 04ca0d0

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

docs/docs/changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.9.0
2+
### Shiny new things
3+
- New search filters customize per type of content. You can enable/disable them in the header context menu.
4+
- Date range filter
5+
- Checkboxes filter
6+
- Links filter
7+
- Number range filter
8+
- Text filter with unique values suggestions
9+
- Tasks filter
110
## 2.8.4
211
### Shiny new things
312
- New rollup. All task count [ISSUE#602](https://github.com/RafaelGB/obsidian-db-folder/issues/602)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/react-window": "1.8.5",
3838
"@typescript-eslint/eslint-plugin": "5.43.0",
3939
"@typescript-eslint/parser": "5.43.0",
40-
"eslint": "8.27.0",
40+
"eslint": "8.28.0",
4141
"jest": "29.3.1",
4242
"jest-mock-extended": "3.0.1",
4343
"obsidian": "0.16.3",

src/components/contextMenu/HeaderContextMenu.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ export default function HeaderContextMenu(
1919

2020
const enableColumnsFilterHandler = () => {
2121
// Invert the columns filter state
22+
const newColumnsFilterState = !columnsFilterAreEnabled;
2223
configActions.alterEphimeral({
23-
enable_columns_filter: !columnsFilterAreEnabled,
24+
enable_columns_filter: newColumnsFilterState,
2425
});
26+
27+
// If the columns filter is disabled, remove all the filters
28+
if (!newColumnsFilterState) {
29+
table.resetColumnFilters();
30+
}
2531
};
2632
return (
2733
<span

0 commit comments

Comments
 (0)