diff --git a/src/components/commons/searchbar/SearchBar.tsx b/src/components/commons/searchbar/SearchBar.tsx index e1b1255e4..e2814681c 100644 --- a/src/components/commons/searchbar/SearchBar.tsx +++ b/src/components/commons/searchbar/SearchBar.tsx @@ -68,11 +68,10 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { const currentReference = refs.reference.current as Element; Object.assign(refs.floating.current?.style, { width: `${currentReference.scrollWidth}px`, - left: - `${ - currentReference.scrollLeft + - (currentReference.scrollWidth - refs.floating.current?.scrollWidth) - }px` ?? "", + left: `${ + currentReference.scrollLeft + + (currentReference.scrollWidth - refs.floating.current?.scrollWidth) + }px`, }); } @@ -113,7 +112,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { const onChangeDebounceHandler = useMemo( () => debounce(changeHandler, 200), - [] + [], ); function onSelect(result: SearchResult): void { @@ -137,7 +136,7 @@ export function SearchBar(props: SearchBarInterface): JSX.Element { >
{ const searchResults: SearchResult[] = [];