When using the b-form-tags
component, if you use an id
or input-id
that starts with a number, it throws a DOMException
when attempting to add a new tag.
id
prop (1-tags-basic
)<template>
<div>
<label for="tags-basic">Type a new tag and press enter</label>
<b-form-tags input-id="1-tags-basic" v-model="value" class="mb-2"></b-form-tags>
<p>Value: {{ value }}</p>
</div>
</template>
<script>
export default {
data() {
return {
value: ['apple', 'orange']
}
}
}
</script>
As per HTML5 specs (https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute), digits should be usable in the id
of input elements. The component's id
and input-id
should allow for this.
Libraries:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4