Skip to content

Commit 049dc8d

Browse files
fixing filter in mobile layout (add onClick func in mobile input)
1 parent 138d9f2 commit 049dc8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/features/product/components/ProductList.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ export default function ProductList() {
174174
defaultValue={option.value}
175175
type="checkbox"
176176
defaultChecked={option.checked}
177+
onChange={(e) => {
178+
handleFilter(e, section, option);
179+
}}
177180
className="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"
178181
/>
179182
<label
@@ -361,13 +364,13 @@ export default function ProductList() {
361364
<div className="mt-4 flex justify-between">
362365
<div>
363366
<h3 className="text-sm text-gray-700">
364-
<a href={product.thumbnail}>
367+
<div href={product.thumbnail}>
365368
<span
366369
aria-hidden="true"
367370
className="absolute inset-0"
368371
/>
369372
{product.title}
370-
</a>
373+
</div>
371374
</h3>
372375
<p className="mt-1 text-sm text-gray-500">
373376
<StarIcon className="w-6 h-6 inline"></StarIcon>

0 commit comments

Comments
 (0)