File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 106106 @paste =" onPasteImage"
107107 @keydown.tab.exact.prevent =" "
108108 @keydown.tab =" selectItem"
109- @keydown.up.exact.prevent =" "
110- @keydown.up =" updateActiveUpOrDown(-1)"
111- @keydown.down.exact.prevent =" "
112- @keydown.down =" updateActiveUpOrDown(1)"
109+ @keydown.up =" updateActiveUpOrDown($event, -1)"
110+ @keydown.down =" updateActiveUpOrDown($event, 1)"
113111 />
114112
115113 <div class =" vac-icon-textarea" >
@@ -442,13 +440,16 @@ export default {
442440 })
443441 }
444442 },
445- updateActiveUpOrDown (direction ) {
443+ updateActiveUpOrDown (event , direction ) {
446444 if (this .filteredEmojis .length ) {
447445 this .activeUpOrDownEmojis = direction
446+ event .preventDefault ()
448447 } else if (this .filteredUsersTag .length ) {
449448 this .activeUpOrDownUsersTag = direction
449+ event .preventDefault ()
450450 } else if (this .filteredTemplatesText .length ) {
451451 this .activeUpOrDownTemplatesText = direction
452+ event .preventDefault ()
452453 }
453454 },
454455 selectItem () {
You can’t perform that action at this time.
0 commit comments