Skip to content

Commit d91578c

Browse files
authored
Merge pull request coreui#208 from gfoidl/form_emit_id
Form components omit the id attribute
2 parents a5c0ad5 + f5f4225 commit d91578c

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

packages/coreui-vue/src/components/form/CFormInput.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const CFormInput = defineComponent({
171171
h(
172172
'input',
173173
{
174+
id: props.id,
174175
...attrs,
175176
class: [
176177
props.plainText ? 'form-control-plaintext' : 'form-control',

packages/coreui-vue/src/components/form/CFormSelect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const CFormSelect = defineComponent({
165165
h(
166166
'select',
167167
{
168+
id: props.id,
168169
...attrs,
169170
class: [
170171
'form-select',

packages/coreui-vue/src/components/form/CFormSwitch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const CFormSwitch = defineComponent({
9090
},
9191
[
9292
h('input', {
93+
id: props.id,
9394
...attrs,
9495
...(props.modelValue && { checked: props.modelValue }),
9596
class: [

packages/coreui-vue/src/components/form/CFormTextarea.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const CFormTextarea = defineComponent({
140140
h(
141141
'textarea',
142142
{
143+
id: props.id,
143144
...attrs,
144145
disabled: props.disabled,
145146
readonly: props.readonly,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy