Skip to content

Commit

Permalink
onUpdated does not get vnode as an argument - v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceG committed Nov 16, 2020
1 parent 2dd997b commit 1f8313b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.6] - 2020-11-16
### Fixed
- `onUpdated` does not get vnode as an argument

## [1.0.3] - 2020-09-21
### Added
- Added .npmignore
Expand Down
4 changes: 2 additions & 2 deletions dist/common.js

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

2 changes: 1 addition & 1 deletion dist/common.js.map

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

4 changes: 2 additions & 2 deletions dist/module.js

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

2 changes: 1 addition & 1 deletion dist/module.js.map

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

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const onUnmounted = (el) => {
delete el[UNIQUE_ID];
};

const onUpdated = (el, binding) => {
const onUpdated = (el, binding, vnode) => {
if (binding.value === binding.oldValue) {
return;
}
onMounted(el, binding);
onMounted(el, binding, vnode);
};

const directive = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-click-away",
"version": "1.0.5",
"version": "1.0.6",
"description": "Vue 3.0 Compatible Click Away Directive",
"main": "dist/common.js",
"module": "dist/module.js",
Expand Down

0 comments on commit 1f8313b

Please sign in to comment.