[지라이슈없음] Search BestSeller Item focus 원복
This commit is contained in:
@@ -207,22 +207,6 @@ export default function SearchPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
}
|
||||
};
|
||||
|
||||
const handleBestSellerItemFocus = useCallback(
|
||||
(e) => {
|
||||
if (
|
||||
searchPerformed &&
|
||||
searchQuery !== null &&
|
||||
bestSellerDatas &&
|
||||
bestSellerDatas.length > 0 &&
|
||||
e.key === "ArrowDown" &&
|
||||
Object.keys(searchDatas).length === 0
|
||||
) {
|
||||
Spotlight.focus(`spotlightId-${bestSellerDatas[0].prdtId}`);
|
||||
}
|
||||
},
|
||||
[bestSellerDatas, searchDatas, searchPerformed, searchQuery]
|
||||
);
|
||||
|
||||
const cursorPosition = () => {
|
||||
const input = document.querySelector(
|
||||
`[data-spotlight-id="input-field-box"] > input`
|
||||
@@ -303,7 +287,6 @@ export default function SearchPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
className={css.inputContainer}
|
||||
data-wheel-point={true}
|
||||
spotlightId={"search-input-layer"}
|
||||
onKeyDown={handleBestSellerItemFocus}
|
||||
>
|
||||
<TInput
|
||||
className={css.inputBox}
|
||||
|
||||
Reference in New Issue
Block a user