@rogieking/figui3 1.0.41 → 1.0.42

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/example.html CHANGED
@@ -107,6 +107,7 @@
107
107
  <fig-chit type="image"
108
108
  disabled="true"
109
109
  size="large"
110
+ onclick="console.log('clicked')"
110
111
  src="https://avatars.githubusercontent.com/u/12345678?v=4"></fig-chit>
111
112
  <fig-chit type="image"
112
113
  disabled="true"
package/fig.css CHANGED
@@ -956,6 +956,11 @@ fig-chit {
956
956
  border-radius: var(--radius-medium);
957
957
  }
958
958
  }
959
+ &[disabled="true"] {
960
+ input {
961
+ pointer-events: none;
962
+ }
963
+ }
959
964
 
960
965
  &[type="gradient"],
961
966
  &[type="image"] {
package/fig.js CHANGED
@@ -1302,7 +1302,6 @@ class FigChit extends HTMLElement {
1302
1302
 
1303
1303
  requestAnimationFrame(() => {
1304
1304
  this.input = this.querySelector("input");
1305
- this.input.disabled = this.disabled;
1306
1305
  this.updateSrc(this.src);
1307
1306
  });
1308
1307
  }
@@ -1323,9 +1322,6 @@ class FigChit extends HTMLElement {
1323
1322
  }
1324
1323
  if (name === "disabled") {
1325
1324
  this.disabled = newValue.toLowerCase() === "true";
1326
- if (this.input) {
1327
- this.input.disabled = this.disabled;
1328
- }
1329
1325
  }
1330
1326
  }
1331
1327
  }
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.41"
3
+ "version": "1.0.42"
4
4
  }