fix: [approval] 거래처 검색 키보드 방향키 내비게이션 버그 수정

- moveDown/moveUp 시 debounce 타이머 클리어하여 search 재실행 방지
This commit is contained in:
김보곤
2026-03-05 11:16:01 +09:00
parent dcbeafd92c
commit 76aabebc6e

View File

@@ -681,11 +681,13 @@ function renderDropdown(inputEl) {
moveDown() {
if (!dropdown || results.length === 0) return;
clearTimeout(debounceTimer);
highlighted = (highlighted + 1) % results.length;
renderDropdown(this.$refs.vinput);
},
moveUp() {
if (!dropdown || results.length === 0) return;
clearTimeout(debounceTimer);
highlighted = highlighted <= 0 ? results.length - 1 : highlighted - 1;
renderDropdown(this.$refs.vinput);
},