Closed Bug 1663057 Opened 4 years ago Closed 4 years ago

Dropping one or more comma-separated plaintext addresses at end of recipient field does not make them visible in a new line

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird82 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird82 --- fixed

People

(Reporter: thomas8, Assigned: aleca)

References

Details

Attachments

(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1601749 +++

Dragging even 50 addresses into a small space after the last pill in a row will squeeze them in there with just the last characters visible, very confusing. Instead, if the space isn't sufficient, the whole string must be moved into the next line to be fully visible immediately (as happens when you type there or paste them into same space).

No longer blocks: 1663055

I can take care of this.

Assignee: nobody → alessandro
Status: NEW → ASSIGNED
Attached patch 1663057-recipient-input.diff (obsolete) — Splinter Review

This takes care of the issue, but I'm not sure if that setTimeout could be avoided by fetching the data inside the drop event.
Any suggestion?

Attachment #9177026 - Flags: review?(bugzilla2007)
Comment on attachment 9177026 [details] [diff] [review]
1663057-recipient-input.diff

Review of attachment 9177026 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/base/content/mailWidgets.js
@@ +2221,5 @@
> +          // Trigger this action only if the string was dropped exactly on the
> +          // <div> inside the input field.
> +          if (input) {
> +            // Wait for the input field to get the string.
> +            setTimeout(() => {

setTimeout is not really acceptable, and will be a hack at best.

You can either grab the data from the event and use that, or use a dragend event listener

Indeed, using a timeout was very silly.

Attachment #9177026 - Attachment is obsolete: true
Attachment #9177026 - Flags: review?(bugzilla2007)
Attachment #9177193 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9177193 [details] [diff] [review]
1663057-recipient-input.diff

Review of attachment 9177193 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM, r=mkmelin
Attachment #9177193 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → 83 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e276a5a5b5d5
Expand compose recipient input when long strings are dropped inside. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Regressions: 1667173
Regressions: 1667602
No longer regressions: 1667602
See Also: → 1667602

Comment on attachment 9177193 [details] [diff] [review]
1663057-recipient-input.diff

Address pills polish

Attachment #9177193 - Flags: approval-comm-esr78?
Attachment #9177193 - Flags: approval-comm-beta?

Comment on attachment 9177193 [details] [diff] [review]
1663057-recipient-input.diff

[Triage Comment]
Approved for beta

Attachment #9177193 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9177193 [details] [diff] [review]
1663057-recipient-input.diff

[Triage Comment]
Approved for esr78

Attachment #9177193 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: