2c5c84f9d2
1. Re-focus the input element on phrase removal 2. Move all actions to `actions:` 3. Move to a form looking `value` rather than `items` 4. Move placeholder functionalit yinto the component 5. Force DDAU instead of two way binding with `slice` and `onchange` 6. Begin to deprecate the `searchable` interface
11 lines
477 B
Handlebars
11 lines
477 B
Handlebars
<ul>
|
|
{{#each value as |item index|}}
|
|
<li>
|
|
<button type="button" {{action 'remove' index}}>Remove</button>{{item}}
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
<label class="type-search">
|
|
<span>Search</span>
|
|
<input onchange={{action 'add'}} onsearch={{action 'add'}} oninput={{action 'input'}} onkeydown={{action 'keydown'}} placeholder={{if (eq value.length 0) placeholder}} value={{item}} type="search" name="s" autofocus="autofocus" />
|
|
</label> |