Skip to content

Commit 087cb7c

Browse files
Umi8UmiSarah Leventhal
and
Sarah Leventhal
authored
fix(component): emit keydown event as event argument to access specific key from consuming apps (#83)
Co-authored-by: Sarah Leventhal <sarah.leventhal@mastercard.com>
1 parent ab32ce8 commit 087cb7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/component.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
@change="onChange"
88
@blur="$emit('blur')"
99
@focus="$emit('focus')"
10-
@keyup="$emit('keyup')"
11-
@keydown="$emit('keydown')"
10+
@keyup="$emit('keyup', $event)"
11+
@keydown="$emit('keydown', $event)"
1212
/>
1313
</template>
1414

0 commit comments

Comments
 (0)