Skip to content

Commit 9e77fa0

Browse files
committed
refact: unnecessary es6 feat rm
1 parent 6e11fc8 commit 9e77fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/composables/useKeyboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function useKeyboard (props, context, dep)
184184
break
185185

186186
case 'ArrowLeft':
187-
if ((searchable.value && tags.value.querySelector('input').selectionStart) || e.shiftKey || mode.value !== 'tags' || !iv.value?.length) {
187+
if ((searchable.value && tags.value.querySelector('input').selectionStart) || e.shiftKey || mode.value !== 'tags' || !iv.value || !iv.value.length) {
188188
return
189189
}
190190

@@ -199,7 +199,7 @@ export default function useKeyboard (props, context, dep)
199199
break
200200

201201
case 'ArrowRight':
202-
if (activeIndex === -1 || e.shiftKey || mode.value !== 'tags' || !iv.value?.length) {
202+
if (activeIndex === -1 || e.shiftKey || mode.value !== 'tags' || !iv.value || !iv.value.length) {
203203
return
204204
}
205205

0 commit comments

Comments
 (0)