@rogieking/figui3 1.5.3 → 1.5.5

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.
package/fig.js CHANGED
@@ -75,6 +75,12 @@ class FigButton extends HTMLElement {
75
75
  if (this.type === "submit") {
76
76
  this.closest("form").dispatchEvent(new Event("submit"));
77
77
  }
78
+ if (this.type === "link") {
79
+ const href = this.getAttribute("href");
80
+ if (href) {
81
+ window.open(href, "_blank");
82
+ }
83
+ }
78
84
  }
79
85
  static get observedAttributes() {
80
86
  return ["disabled", "selected"];
@@ -1436,6 +1442,7 @@ class FigInputColor extends HTMLElement {
1436
1442
  }
1437
1443
 
1438
1444
  #handleChange(event) {
1445
+ event.stopPropagation();
1439
1446
  this.#emitChangeEvent();
1440
1447
  }
1441
1448
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {