Skip to content

Commit 7eaec17

Browse files
committed
fix: form components - add missing events
1 parent 7aad5d4 commit 7eaec17

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/components/form/CInputCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
description, class: computedClasses}">
44
<template #input>
55
<input
6-
v-on="listeners"
6+
v-on="$listeners"
77
v-bind="$attrs"
88
:id="safeId"
99
:type="$options.type"

src/components/form/CInputFile.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ export default {
153153
// },
154154
haveInputGroup () {
155155
return false
156+
},
157+
listeners () {
158+
const { change, ...listeners } = this.$listeners // eslint-disable-line no-unused-vars
159+
return listeners
156160
}
157161
// haveWrapper () {
158162
// return this.haveInputGroup || Boolean(this.addWrapperClasses || this.isHorizontal)

src/components/form/CSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<template #input>
1717
<select
1818
v-bind="$attrs"
19-
v-on="listeners"
19+
v-on="$listeners"
2020
:id="safeId"
2121
:class="inputClasses"
2222
@input="onSelect($event)"

0 commit comments

Comments
 (0)