@esportsplus/ui 0.17.1 → 0.17.2

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.
@@ -33,6 +33,8 @@ const onclick = (data, content, state = reactive({ active: false })) => {
33
33
  <div
34
34
  class='tooltip'
35
35
  onclick='${function (e) {
36
+ e.preventDefault();
37
+ e.stopPropagation();
36
38
  let active = true, node = e.target;
37
39
  if (this === node || (data.toggle && this.contains(node))) {
38
40
  active = !state.active;
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  "private": false,
48
48
  "sideEffects": false,
49
49
  "type": "module",
50
- "version": "0.17.1",
50
+ "version": "0.17.2",
51
51
  "scripts": {
52
52
  "build": "run-s build:vite build:ts",
53
53
  "build:ts": "tsc && tsc-alias",
@@ -54,6 +54,9 @@ const onclick = (
54
54
  <div
55
55
  class='tooltip'
56
56
  onclick='${function(this: HTMLElement, e: Event) {
57
+ e.preventDefault();
58
+ e.stopPropagation();
59
+
57
60
  let active = true,
58
61
  node = e.target as Node | null;
59
62