Started migrating tag manager JS to HTML-first component

This commit is contained in:
Dan Brown
2020-06-28 23:15:05 +01:00
parent 10305a4446
commit 4e107b9160
8 changed files with 201 additions and 16 deletions

View File

@ -2,12 +2,15 @@
const template = `
<div>
<input :value="value" :autosuggest-type="type" ref="input"
:placeholder="placeholder" :name="name"
:placeholder="placeholder"
:name="name"
type="text"
@input="inputUpdate($event.target.value)" @focus="inputUpdate($event.target.value)"
@input="inputUpdate($event.target.value)"
@focus="inputUpdate($event.target.value)"
@blur="inputBlur"
@keydown="inputKeydown"
:aria-label="placeholder"
autocomplete="off"
/>
<ul class="suggestion-box" v-if="showSuggestions">
<li v-for="(suggestion, i) in suggestions"