Closed
Bug 1696789
Opened 4 years ago
Closed 4 years ago
Improve address rows selector in pillifyRecipients() to exclude custom headers
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr78 wontfix)
RESOLVED
FIXED
88 Branch
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: thomas8, Assigned: thomas8)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
1.56 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1688336 +++
While bug 1682147 incidentally fixed bug 1688336 by adding optional chaining operator ?.
to an expected autocomplete input, we should adjust the selector for the address rows to only match rows with autocomplete inputs (vs. plain custom headers).
function pillifyRecipients() {
for (let row of document.querySelectorAll(".address-row:not(.hidden)")) {
let input = row.querySelector(
`input[is="autocomplete-input"][recipienttype]`
);
// If we find a leftover string in the input field, create a pill. If the
// newly created pill is not a valid address, the sending will stop.
if (input?.value.trim()) {
recipientAddPills(input);
}
}
}
Assignee | ||
Updated•4 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•4 years ago
|
||
Selector cleanup, now matching only the autocomplete inputs that we want.
Attachment #9207339 -
Flags: review?(alessandro)
Updated•4 years ago
|
Attachment #9207339 -
Flags: review?(alessandro) → review+
Assignee | ||
Updated•4 years ago
|
Keywords: checkin-needed-tb
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/7091e06c86a6
Improve selector in pillifyRecipients() to match only autocomplete row inputs. r=aleca
Updated•4 years ago
|
Target Milestone: --- → 88 Branch
Updated•4 years ago
|
status-thunderbird_esr78:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•