Skip to content

Commit

Permalink
Fix some snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
adhamu committed Mar 17, 2022
1 parent 13deaaa commit 025c2f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/__tests__/styled.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ describe('Search Suggestion Styles', () => {
width: 100%;
}
.emotion-0 mark {
display: inline;
padding: 0;
}
.emotion-0 ul {
position: absolute;
top: 100%;
Expand All @@ -36,7 +41,6 @@ describe('Search Suggestion Styles', () => {
.emotion-0 ul li>*:focus {
border: 0;
box-shadow: 0;
font-weight: bold;
outline: 0;
}
Expand All @@ -62,6 +66,11 @@ describe('Search Suggestion Styles', () => {
width: 100%;
}
.emotion-0 mark {
display: inline;
padding: 0;
}
.emotion-0 ul {
position: absolute;
top: 100%;
Expand All @@ -81,7 +90,6 @@ describe('Search Suggestion Styles', () => {
.emotion-0 ul li>*:focus {
border: 0;
box-shadow: 0;
font-weight: bold;
outline: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/useSuggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useSuggestions = (
// eslint-disable-next-line no-param-reassign
;(el.firstChild as HTMLElement).tabIndex = -1
})
})
}, [searchSuggestionsRef.current])

const selectElement = (type: ResultType) => {
;(
Expand Down

0 comments on commit 025c2f7

Please sign in to comment.