Skip to content

Commit

Permalink
fix: element in error event
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Feb 13, 2022
1 parent b29b0e0 commit 8ab78bd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 47 deletions.
85 changes: 45 additions & 40 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion v-lazy-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
root.value.getAttribute("src") !== props.srcPlaceholder
) {
state.loaded = true;
emit("load", this.$el);
emit("load", root.value);
}
};
const error = () => emit("error", root.value);
Expand Down
12 changes: 6 additions & 6 deletions v-lazy-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@cypress/vite-dev-server": "^2.0.7",
"@cypress/vue": "^3.0.3",
"@vitejs/plugin-vue": "^1.3.0",
"@cypress/vite-dev-server": "^2.2.2",
"@cypress/vue": "^3.1.1",
"@vitejs/plugin-vue": "^2.2.0",
"@vue/babel-preset-app": "^4.5.13",
"@vue/compiler-sfc": "^3.2.1",
"@vue/test-utils": "next",
"babel-jest": "^26.6.3",
"cypress": "^8.3.0",
"cypress": "^9.4.1",
"jest": "^26.6.3",
"vite": "^2.4.4",
"vue": "^3.0.0",
"vite": "^2.8.1",
"vue": "^3.2.31",
"vue-jest": "next"
},
"files": [
Expand Down

0 comments on commit 8ab78bd

Please sign in to comment.