Skip to content

Commit

Permalink
Merge pull request #149 from libvue/fix/button-propagation-bug
Browse files Browse the repository at this point in the history
Fix/button propagation bug
  • Loading branch information
harmendv authored Dec 28, 2023
2 parents 087e53a + 8a8c804 commit d1c24fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libvue/core",
"version": "1.1.6",
"version": "1.1.7",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/components/LvButton/LvButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ export default {
},
methods: {
onClick(e) {
e.stopPropagation();
this.$emit('click', e);
},
onKeydown(e) {
e.stopPropagation();
e.preventDefault();
this.$emit('click', e);
}
Expand Down

0 comments on commit d1c24fd

Please sign in to comment.