mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1474364 - Clear the stored flexbox highlighter shown before emitting the event. r=pbro
This commit is contained in:
parent
ef23676856
commit
c75326a930
@ -285,8 +285,9 @@ class HighlightersOverlay {
|
||||
|
||||
// Emit the NodeFront of the flexbox container element that the flexbox highlighter
|
||||
// was hidden for.
|
||||
this.emit("flexbox-highlighter-hidden", this.flexboxHighlighterShown);
|
||||
const nodeFront = this.flexboxHighlighterShown;
|
||||
this.flexboxHighlighterShown = null;
|
||||
this.emit("flexbox-highlighter-hidden", nodeFront);
|
||||
|
||||
// Erase flexbox highlighter state.
|
||||
this.state.flexbox = null;
|
||||
|
Loading…
Reference in New Issue
Block a user