Skip to content

Improve addSignatureDescription/editSignatureDescription handling (issue 19683) #19684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

  • 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, </span> tags.

… (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, `</span>` tags.
@Snuffleupagus Snuffleupagus added viewer editor release-blocker Blocker for the upcoming release labels Mar 19, 2025
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/f608af4f168d272/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/f608af4f168d272/output.txt

Total script time: 11.64 mins

  • Integration Tests: Passed

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really have an HTML linter.
LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit 1a39e2d into mozilla:master Mar 19, 2025
7 checks passed
@Snuffleupagus Snuffleupagus deleted the issue-19683 branch March 19, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor release-blocker Blocker for the upcoming release viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: viewer.html: Incorrect use of <label for=FORM_ELEMENT> warning
3 participants