Skip to content

Commit f4cdc96

Browse files
committed
bump node deps/dev deps
1 parent 526b614 commit f4cdc96

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

GhostUI/ClientApp/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@microsoft/signalr": "^5.0.5",
1919
"axios": "^0.21.1",
2020
"bulma": "^0.9.2",
21-
"core-js": "^3.10.1",
21+
"core-js": "^3.11.0",
2222
"register-service-worker": "^1.7.2",
2323
"vue": "^2.6.12",
2424
"vue-class-component": "^7.2.6",
@@ -31,8 +31,8 @@
3131
"devDependencies": {
3232
"@testing-library/jest-dom": "^5.11.10",
3333
"@types/jest": "^26.0.22",
34-
"@typescript-eslint/eslint-plugin": "^4.21.0",
35-
"@typescript-eslint/parser": "^4.21.0",
34+
"@typescript-eslint/eslint-plugin": "^4.22.0",
35+
"@typescript-eslint/parser": "^4.22.0",
3636
"@vue/cli-plugin-babel": "^4.5.12",
3737
"@vue/cli-plugin-e2e-nightwatch": "^4.5.12",
3838
"@vue/cli-plugin-eslint": "^4.5.12",
@@ -42,14 +42,14 @@
4242
"@vue/cli-service": "^4.5.12",
4343
"@vue/eslint-config-prettier": "^6.0.0",
4444
"@vue/eslint-config-typescript": "^7.0.0",
45-
"@vue/test-utils": "1.1.3",
45+
"@vue/test-utils": "1.1.4",
4646
"eslint": "^7.24.0",
47-
"eslint-plugin-prettier": "^3.3.1",
48-
"eslint-plugin-vue": "^7.8.0",
47+
"eslint-plugin-prettier": "^3.4.0",
48+
"eslint-plugin-vue": "^7.9.0",
4949
"node-sass": "^5.0.0",
5050
"prettier": "^2.2.1",
5151
"sass-loader": "^10.1.1",
52-
"ts-jest": "^26.5.4",
52+
"ts-jest": "^26.5.5",
5353
"typescript": "^4.2.4",
5454
"vue-svg-loader": "^0.16.0",
5555
"vue-template-compiler": "^2.6.12",

GhostUI/ClientApp/src/plugins/vue-click-outside.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,19 @@ const vClickOutside = {
1010
console.warn(warnMsg);
1111
}
1212

13-
const bubble = binding.modifiers.bubble;
14-
15-
const handlerFn = (e) => {
16-
if (bubble || (!el.contains(e.target) && el !== e.target)) {
13+
el.clickOutsideEvent = function (e) {
14+
e.stopPropagation();
15+
if (!(el === e.target || el.contains(e.target))) {
1716
binding.value(e);
1817
}
19-
};
18+
}
2019

21-
el.__vueClickOutside__ = handlerFn;
22-
DEFAULT_EVENTS.forEach((type) => document.addEventListener(type, handlerFn));
20+
DEFAULT_EVENTS.forEach((type) => document.addEventListener(type, el.clickOutsideEvent));
2321
},
2422

2523
unbind: function(el) {
26-
if (el.__vueClickOutside__) {
27-
DEFAULT_EVENTS.forEach((type) => document?.removeEventListener(type, el.__vueClickOutside__));
28-
el.__vueClickOutside__ = null;
24+
if (el.clickOutsideEvent) {
25+
DEFAULT_EVENTS.forEach((type) => document?.removeEventListener(type, el.clickOutsideEvent));
2926
}
3027
}
3128
});

0 commit comments

Comments
 (0)