fix: [approval] 거래처 검색 키보드 방향키 내비게이션 버그 수정
- moveDown/moveUp 시 debounce 타이머 클리어하여 search 재실행 방지
This commit is contained in:
@@ -681,11 +681,13 @@ function renderDropdown(inputEl) {
|
|||||||
|
|
||||||
moveDown() {
|
moveDown() {
|
||||||
if (!dropdown || results.length === 0) return;
|
if (!dropdown || results.length === 0) return;
|
||||||
|
clearTimeout(debounceTimer);
|
||||||
highlighted = (highlighted + 1) % results.length;
|
highlighted = (highlighted + 1) % results.length;
|
||||||
renderDropdown(this.$refs.vinput);
|
renderDropdown(this.$refs.vinput);
|
||||||
},
|
},
|
||||||
moveUp() {
|
moveUp() {
|
||||||
if (!dropdown || results.length === 0) return;
|
if (!dropdown || results.length === 0) return;
|
||||||
|
clearTimeout(debounceTimer);
|
||||||
highlighted = highlighted <= 0 ? results.length - 1 : highlighted - 1;
|
highlighted = highlighted <= 0 ? results.length - 1 : highlighted - 1;
|
||||||
renderDropdown(this.$refs.vinput);
|
renderDropdown(this.$refs.vinput);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user