@cu-mkp/editioncrafter 1.3.1-beta.3 → 1.3.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,10 +88,11 @@ function SurfaceBrowser(props) {
88
88
 
89
89
  const filteredDocs = useMemo(() => (filterDocs(documents, tags)), [filterDocs, documents, tags])
90
90
 
91
+ const { clearTags } = useContext(TagFilterContext)
92
+
91
93
  const navigate = useNavigate()
92
94
  const location = useLocation()
93
95
  const selection = useMemo(() => getSelection(location.pathname), [location])
94
- const { clearTags } = useContext(TagFilterContext)
95
96
 
96
97
  const navigateToSelection = useCallback((nextSelection) => {
97
98
  const folioID = nextSelection?.left ? `${nextSelection.left.localID}_${nextSelection.left.surfaceID}` : null
@@ -146,7 +147,10 @@ function SurfaceBrowser(props) {
146
147
  { tags && tags.length
147
148
  ? (
148
149
  <Button
149
- onClick={clearTags}
150
+ onClick={() => {
151
+ setTags([])
152
+ clearTags()
153
+ }}
150
154
  >
151
155
  Clear All
152
156
  </Button>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cu-mkp/editioncrafter",
3
3
  "type": "module",
4
- "version": "1.3.1-beta.3",
4
+ "version": "1.3.1-beta.4",
5
5
  "private": false,
6
6
  "description": "A simple digital critical edition publication tool",
7
7
  "license": "MIT",