@rogieking/figui3 1.0.66 → 1.0.67

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.
Files changed (2) hide show
  1. package/fig.js +8 -6
  2. package/package.json +1 -1
package/fig.js CHANGED
@@ -1407,13 +1407,15 @@ class FigImage extends HTMLElement {
1407
1407
  #updateRefs() {
1408
1408
  requestAnimationFrame(() => {
1409
1409
  this.chit = this.querySelector("fig-chit");
1410
- this.uploadButton = this.querySelector("fig-button");
1411
- this.fileInput = this.uploadButton?.querySelector("input");
1410
+ if (this.upload) {
1411
+ this.uploadButton = this.querySelector("fig-button");
1412
+ this.fileInput = this.uploadButton?.querySelector("input");
1412
1413
 
1413
- this.fileInput.addEventListener(
1414
- "change",
1415
- this.handleFileInput.bind(this)
1416
- );
1414
+ this.fileInput.addEventListener(
1415
+ "change",
1416
+ this.handleFileInput.bind(this)
1417
+ );
1418
+ }
1417
1419
  });
1418
1420
  }
1419
1421
  handleFileInput(e) {
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.66"
3
+ "version": "1.0.67"
4
4
  }