Closed
Bug 1532790
Opened 6 years ago
Closed 6 years ago
Custom Element editable menulist doesn't accept selection of dropdown items
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 67.0
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file)
11.71 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
From bug 1524457 comment 68.
Assignee | ||
Comment 1•6 years ago
|
||
The menulist was accepting the dropdown item, but not updating to reflect its new value.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9049104 -
Flags: review?(mkmelin+mozilla)
Comment 2•6 years ago
|
||
Comment on attachment 9049104 [details] [diff] [review]
1532790-menulist-test-1.diff
Review of attachment 9049104 [details] [diff] [review]:
-----------------------------------------------------------------
r=mkmelin with the below explained or fixed
::: mail/base/content/mailWidgets.js
@@ +510,5 @@
> + event.stopPropagation();
> + this.selectedItem = null;
> + this.setAttribute("value", this._inputField.value);
> + this.dispatchEvent(new CustomEvent("change", { bubbles: true }));
> + };
why first stopPropagation just to dispatch the same event again?
Attachment #9049104 -
Flags: review?(mkmelin+mozilla) → review+
Assignee | ||
Comment 3•6 years ago
|
||
So that the target of the event is the menulist and not the input field inside it. The internals of a widget should be a black box to anything outside it. It isn't in a lot of cases, but it should be.
Comment 4•6 years ago
|
||
Ah right, perhaps add a comment in the code
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/de90669821c5
Fix editable menulist to accept selection of dropdown items; r=mkmelin
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 67.0
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/2abcf2279b72
Add missing getter to match overloaded setter; rs=bustage-fix DONTBUILD
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/53e9bb2729c2
Skip test on Mac where it will never pass; rs=bustage-fix
Assignee | ||
Comment 8•6 years ago
|
||
Gah, this broke date/time pickers!
You need to log in
before you can comment on or make changes to this bug.
Description
•