From 79058c92e3644612355c018f448f5bacbe2e082b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 19 Mar 2025 11:19:47 +0100 Subject: [PATCH] Improve `addSignatureDescription`/`editSignatureDescription` handling (issue 19683) - Point the `addSignatureDescription` respectively `editSignatureDescription` labels to their actual `input`-elements (this way clicking the label will actually focus the input). - Add the event listener to the `addSignatureDescription`-input, rather than its `span`-element (this is consistent with the `editSignatureDescription` case). - Correctly check if the `addSignatureDescription`-input is empty, since we're accidentally comparing with its `span`-element. - Remove unbalanced, and likely accidentally added, `` tags. --- web/signature_manager.js | 4 ++-- web/viewer.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/signature_manager.js b/web/signature_manager.js index 1ac8bdfc4..f2f9b7347 100644 --- a/web/signature_manager.js +++ b/web/signature_manager.js @@ -187,10 +187,10 @@ class SignatureManager { }, { passive: true } ); - description.addEventListener( + this.#description.addEventListener( "input", () => { - this.#clearDescription.disabled = description.value === ""; + this.#clearDescription.disabled = this.#description.value === ""; }, { passive: true } ); diff --git a/web/viewer.html b/web/viewer.html index 2fabb9ab1..7805b0f1d 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -716,9 +716,9 @@ See https://github.com/adobe-type-tools/cmap-resources
- + - +
@@ -755,9 +755,9 @@ See https://github.com/adobe-type-tools/cmap-resources
- + - +