@rogieking/figui3 1.0.65 → 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.
- package/fig.css +1 -4
- package/fig.js +8 -6
- package/package.json +1 -1
package/fig.css
CHANGED
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
|
-
|
|
1411
|
-
|
|
1410
|
+
if (this.upload) {
|
|
1411
|
+
this.uploadButton = this.querySelector("fig-button");
|
|
1412
|
+
this.fileInput = this.uploadButton?.querySelector("input");
|
|
1412
1413
|
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
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