Vue.JS value tied on input having the focus
Apparently, this is as simple as doing a bit of code on event handlers. <input type=”search” v-model=”query” @focus=”magic_flag = true” @blur=”magic_flag = false” /> <div class=”results-as-you-type” v-if=”magic_flag”> … </div>