Skip to content

Commit 41cafc2

Browse files
authored
Merge pull request #54 from bastianjoel/transparent-input
feat: make CInput events transparent
2 parents 6a27fb5 + 0b52adc commit 41cafc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/form/CInput.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<template #input>
1414
<input
1515
v-bind="$attrs"
16+
v-on="listeners"
1617
:id="safeId"
1718
:type="type"
1819
:class="inputClasses"
@@ -155,6 +156,10 @@ export default {
155156
// }
156157
// }
157158
159+
listeners () {
160+
const { input, change, ...listeners } = this.$listeners; // eslint-disable-line no-unused-vars
161+
return listeners;
162+
},
158163
159164
//wrapperComputedProps mixin
160165
// isHorizontal () {

0 commit comments

Comments
 (0)