Skip to content

Commit 73a5dc1

Browse files
authored
Merge pull request bootstrap-vue#250 from charkins/form-ids
Use default id (b_UID) for checkbox, file and select.
2 parents 2303233 + 7609d63 commit 73a5dc1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/components/form-checkbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<label :class="[inputClass,checkboxClass,custom?'custom-checkbox':null]">
33
<input
44
type="checkbox"
5-
:id="id"
5+
:id="id || ('b_'+_uid)"
66
:name="name"
77
:value="value"
88
:disabled="disabled"

lib/components/form-file.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- Real Form input -->
1616
<input type="file"
1717
:name="name"
18-
:id="id"
18+
:id="id || ('b_'+_uid)"
1919
:disabled="disabled"
2020
ref="input"
2121
:accept="accept"

lib/components/form-select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<select :class="[inputClass,custom?'custom-select':null]"
33
:name="name"
4-
:id="id"
4+
:id="id || ('b_'+_uid)"
55
v-model="localValue"
66
:disabled="disabled"
77
ref="input"

0 commit comments

Comments
 (0)