|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<div class="field-tags">
|
|
|
|
|
|
|
|
|
|
<select name="{ state.options.name }[]" multiple style="display: none;">
|
|
|
|
|
<option each={ tag in state.tags } value={ tag }></option>
|
|
|
|
|
<option each={ tag in state.tags } value={ tag } selected></option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<label class="field-label">
|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
@ -155,8 +155,6 @@
|
|
|
|
|
this.state.tags.push(value)
|
|
|
|
|
this.update()
|
|
|
|
|
|
|
|
|
|
// select new option
|
|
|
|
|
this.$('select option[value="' + value + '"]').selected = true
|
|
|
|
|
this.$('input').value = ''
|
|
|
|
|
} else if (value.length === 0) {
|
|
|
|
|
this.state.errors.push('Required!')
|
|
|
|
|