mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Clear DOM overlay on shutdown
This commit is contained in:
@@ -402,6 +402,8 @@ export default class Agent extends EventEmitter {
|
||||
};
|
||||
|
||||
shutdown = () => {
|
||||
// Clean up the overlay if visible, and associated events.
|
||||
this.stopInspectingDOM();
|
||||
this.emit('shutdown');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user