turbowrap-issue-widget 1.0.3 → 1.0.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.
@@ -6066,7 +6066,7 @@ class zc {
6066
6066
  const A = this.shadow.getElementById("iw-trigger"), t = this.shadow.getElementById("iw-overlay"), r = this.shadow.getElementById("iw-close");
6067
6067
  A == null || A.addEventListener("click", () => this.open()), t == null || t.addEventListener("click", () => this.close()), r == null || r.addEventListener("click", () => this.close()), this.shadow.addEventListener("click", (s) => {
6068
6068
  const n = s.target;
6069
- n.id === "iw-next" ? this.handleNext() : n.id === "iw-back" ? this.handleBack() : n.id === "iw-done" ? (this.close(), this.reset()) : n.id === "iw-screenshot-btn" || n.closest("#iw-screenshot-btn") ? this.handleScreenshotCapture() : n.id === "iw-upload-btn" || n.closest("#iw-upload-btn") ? this.handleUploadClick() : n.id === "iw-element-btn" || n.closest("#iw-element-btn") ? this.handleElementPick() : n.id === "iw-remove-screenshot" ? this.handleRemoveScreenshot() : n.id === "iw-remove-element" && this.handleRemoveElement();
6069
+ n.id === "iw-next" || n.closest("#iw-next") ? this.handleNext() : n.id === "iw-back" || n.closest("#iw-back") ? this.handleBack() : n.id === "iw-done" || n.closest("#iw-done") ? (this.close(), this.reset()) : n.id === "iw-screenshot-btn" || n.closest("#iw-screenshot-btn") ? this.handleScreenshotCapture() : n.id === "iw-upload-btn" || n.closest("#iw-upload-btn") ? this.handleUploadClick() : n.id === "iw-element-btn" || n.closest("#iw-element-btn") ? this.handleElementPick() : n.id === "iw-remove-screenshot" ? this.handleRemoveScreenshot() : n.id === "iw-remove-element" && this.handleRemoveElement();
6070
6070
  }), this.shadow.addEventListener("change", (s) => {
6071
6071
  var i;
6072
6072
  const n = s.target;
@@ -6116,10 +6116,13 @@ class zc {
6116
6116
  }
6117
6117
  async handleScreenshotCapture() {
6118
6118
  try {
6119
+ this.container.style.display = "none";
6119
6120
  const A = await _c(this.config.screenshotMethod), t = await as(A), r = await os(t);
6120
- this.state.screenshots = [t], this.state.screenshotPreviews = [r], this.update();
6121
+ this.state.screenshots = [t], this.state.screenshotPreviews = [r];
6121
6122
  } catch (A) {
6122
6123
  console.error("Screenshot capture failed:", A);
6124
+ } finally {
6125
+ this.container.style.display = "", this.update();
6123
6126
  }
6124
6127
  }
6125
6128
  handleUploadClick() {