From 98c27fd812b53e78457b76a327c0b10011d28e7b Mon Sep 17 00:00:00 2001 From: Xiaofeng An Date: Wed, 13 Feb 2019 07:38:53 -0500 Subject: [PATCH] resolve issue related to event handler --- .../autocomplete_input/autocomplete_input.vue | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue index 3af33562..1e26b76b 100644 --- a/src/components/autocomplete_input/autocomplete_input.vue +++ b/src/components/autocomplete_input/autocomplete_input.vue @@ -13,11 +13,11 @@ @keydown.shift.tab="cycleBackward" @keydown.tab="cycleForward" @keydown.enter="replaceCandidate" - @drop="drop && drop()" - @dragover.prevent="dragoverPrevent && dragoverPrevent()" - @paste="paste && paste()" - @keydown.meta.enter="keydownMetaEnter && keydownMetaEnter()" - @keyup.ctrl.enter="keyupCtrlEnter && keyupCtrlEnter()"> + @drop="drop && drop($event)" + @dragover.prevent="dragoverPrevent && dragoverPrevent($event)" + @paste="paste && paste($event)" + @keydown.meta.enter="keydownMetaEnter && keydownMetaEnter($event)" + @keyup.ctrl.enter="keyupCtrlEnter && keyupCtrlEnter($event)"> + @drop="drop && drop($event)" + @dragover.prevent="dragoverPrevent && dragoverPrevent($event)" + @paste="paste && paste($event)" + @keydown.meta.enter="keydownMetaEnter && keydownMetaEnter($event)" + @keyup.ctrl.enter="keyupCtrlEnter && keyupCtrlEnter($event)"/>