Skip to content

Commit

Permalink
Fixed reset button.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed May 2, 2024
1 parent e1c3bec commit 530a512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion algolia-search/dist/islands/algolia-search.island.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions algolia-search/src/search-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const SearchForm = (props) => {
if (refinementItem.isRefined) refinePageTypes(refinementItem.value)
})
sharedRefinements.map(refinementItem => {
if (refinementItem.isRefined) refinePageTypes(refinementItem.value)
if (refinementItem.isRefined) refineSharedTypes(refinementItem.value)
})
}}
>
Expand Down Expand Up @@ -93,7 +93,7 @@ const SearchForm = (props) => {
checked={item.isRefined}

/>
{item.value} ({item.count})
{item.value} ({item.count})d
</label>
</li>
)}
Expand All @@ -107,9 +107,7 @@ const SearchForm = (props) => {
<li
key={i}
className="w-fit flex items-center justify-center border border-black p-5 mb-5 last:mb-0"
style={{
alignItems: "center",
}}
style={{alignItems: "center"}}
>
<label style={{
marginTop: "1rem",
Expand All @@ -120,7 +118,6 @@ const SearchForm = (props) => {
type="checkbox"
onChange={() => refineSharedTypes(item.value)}
checked={item.isRefined}

/>
{item.value} ({item.count})
</label>
Expand Down

0 comments on commit 530a512

Please sign in to comment.