Skip to content

Commit 025c2f7

Browse files
committed
Fix some snaps
1 parent 13deaaa commit 025c2f7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/__tests__/styled.test.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ describe('Search Suggestion Styles', () => {
1717
width: 100%;
1818
}
1919
20+
.emotion-0 mark {
21+
display: inline;
22+
padding: 0;
23+
}
24+
2025
.emotion-0 ul {
2126
position: absolute;
2227
top: 100%;
@@ -36,7 +41,6 @@ describe('Search Suggestion Styles', () => {
3641
.emotion-0 ul li>*:focus {
3742
border: 0;
3843
box-shadow: 0;
39-
font-weight: bold;
4044
outline: 0;
4145
}
4246
@@ -62,6 +66,11 @@ describe('Search Suggestion Styles', () => {
6266
width: 100%;
6367
}
6468
69+
.emotion-0 mark {
70+
display: inline;
71+
padding: 0;
72+
}
73+
6574
.emotion-0 ul {
6675
position: absolute;
6776
top: 100%;
@@ -81,7 +90,6 @@ describe('Search Suggestion Styles', () => {
8190
.emotion-0 ul li>*:focus {
8291
border: 0;
8392
box-shadow: 0;
84-
font-weight: bold;
8593
outline: 0;
8694
}
8795

src/useSuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const useSuggestions = (
2323
// eslint-disable-next-line no-param-reassign
2424
;(el.firstChild as HTMLElement).tabIndex = -1
2525
})
26-
})
26+
}, [searchSuggestionsRef.current])
2727

2828
const selectElement = (type: ResultType) => {
2929
;(

0 commit comments

Comments
 (0)