Bug 1365053 - called `_onEyeDropperDone` once the color is selected; r=jdescottes draft
authorMatteo Ferretti <mferretti@mozilla.com>
Mon, 12 Jun 2017 10:00:05 +0200
changeset 592419 9673c0a1636f44deb8c96159758308dcf41270d6
parent 592418 bd9dcec1adc156e39f590099b030ed8c0966184f
child 632814 9684e89c208098a887edb002704f4ebacc407c7c
push id63382
push userbmo:zer0@mozilla.com
push dateMon, 12 Jun 2017 08:02:09 +0000
reviewersjdescottes
bugs1365053
milestone55.0a1
Bug 1365053 - called `_onEyeDropperDone` once the color is selected; r=jdescottes MozReview-Commit-ID: JUppfvNYmTJ
devtools/client/shared/widgets/tooltip/SwatchColorPickerTooltip.js
--- a/devtools/client/shared/widgets/tooltip/SwatchColorPickerTooltip.js
+++ b/devtools/client/shared/widgets/tooltip/SwatchColorPickerTooltip.js
@@ -174,16 +174,17 @@ SwatchColorPickerTooltip.prototype = Her
       this.hide();
 
       this.tooltip.emit("eyedropper-opened");
     }, e => console.error(e));
 
     inspector.once("color-picked", color => {
       toolbox.win.focus();
       this._selectColor(color);
+      this._onEyeDropperDone();
     });
 
     inspector.once("color-pick-canceled", () => {
       this._onEyeDropperDone();
     });
   },
 
   _onEyeDropperDone: function () {