From ee4c6f362b286e1306b89e036a48ebc79589d056 Mon Sep 17 00:00:00 2001
From: HJ <spam@hjkos.com>
Date: Thu, 14 Feb 2019 19:05:59 +0000
Subject: Revert "Merge branch 'hotfix/issues-in-autocomplete' into 'develop'"

This reverts merge request !574
---
 .../autocomplete_input/autocomplete_input.vue      | 28 +++++++++++-----------
 1 file changed, 14 insertions(+), 14 deletions(-)

(limited to 'src/components/autocomplete_input/autocomplete_input.vue')

diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue
index 1e26b76b..56233535 100644
--- a/src/components/autocomplete_input/autocomplete_input.vue
+++ b/src/components/autocomplete_input/autocomplete_input.vue
@@ -4,8 +4,8 @@
       v-if="multiline"
       ref="textarea"
       rows="1"
-      :value="value" :class="classObj" :id="id" :placeholder="placeholder"
-      @input="$emit('input', $event.target.value), autoResize && resize($event)" 
+      :value="text" :class="classObj" :id="id" :placeholder="placeholder"
+      @input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)" 
       @click="setCaret"
       @keyup="setCaret"
       @keydown.down="cycleForward"
@@ -13,17 +13,17 @@
       @keydown.shift.tab="cycleBackward"
       @keydown.tab="cycleForward"
       @keydown.enter="replaceCandidate"
-      @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()"
+      @dragover.prevent="dragoverPrevent && dragoverPrevent()"
+      @paste="paste && paste()"
+      @keydown.meta.enter="keydownMetaEnter && keydownMetaEnter()"
+      @keyup.ctrl.enter="keyupCtrlEnter && keyupCtrlEnter()">
     </textarea>
     <input
       v-else
       ref="textarea"
-      :value="value" :class="classObj" :id="id" :placeholder="placeholder"
-      @input="$emit('input', $event.target.value), autoResize && resize($event)" 
+      :value="text" :class="classObj" :id="id" :placeholder="placeholder"
+      @input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)" 
       @click="setCaret"
       @keyup="setCaret"
       @keydown.down="cycleForward"
@@ -31,11 +31,11 @@
       @keydown.shift.tab="cycleBackward"
       @keydown.tab="cycleForward"
       @keydown.enter="replaceCandidate"
-      @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()"
+      @dragover.prevent="dragoverPrevent && dragoverPrevent()"
+      @paste="paste && paste()"
+      @keydown.meta.enter="keydownMetaEnter && keydownMetaEnter()"
+      @keyup.ctrl.enter="keyupCtrlEnter && keyupCtrlEnter()"/>
     <div style="position:relative;" v-if="candidates">
       <div class="autocomplete-panel">
         <div v-for="candidate in candidates" @click="replace(candidate.utf || (candidate.screen_name + ' '))">
-- 
cgit v1.2.3-70-g09d2

