vueless 0.0.351 → 0.0.352

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,6 @@ import { unref } from "vue";
3
3
  function clickOutside(target, handler, options) {
4
4
  const { capture = true, ignore = [] } = options;
5
5
 
6
- let shouldListen = true;
7
-
8
6
  const ignoreList = unref(ignore).map((item) => unref(item));
9
7
  const el = unref(target);
10
8
 
@@ -18,25 +16,15 @@ function clickOutside(target, handler, options) {
18
16
  return;
19
17
  }
20
18
 
21
- if (!shouldListen) {
22
- shouldListen = true;
23
-
24
- return;
25
- }
26
-
27
19
  handler(event);
28
20
  }
29
21
 
30
- function onPointerdown(event) {
31
- shouldListen = !!(el && !event.composedPath().includes(el));
32
- }
33
-
34
22
  window.addEventListener("click", onClick, { passive: true, capture });
35
- window.addEventListener("pointerdown", onPointerdown, { passive: true });
23
+ window.addEventListener("pointerdown", onClick, { passive: true });
36
24
 
37
25
  function removeEvents() {
38
26
  window.removeEventListener("click", onClick, { capture, passive: true });
39
- window.removeEventListener("pointerdown", onPointerdown, { passive: true });
27
+ window.removeEventListener("pointerdown", onClick, { passive: true });
40
28
  }
41
29
 
42
30
  return removeEvents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.351",
3
+ "version": "0.0.352",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.351",
4
+ "version": "0.0.352",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",