Skip to content

Commit

Permalink
Fix dom reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Mar 23, 2024
1 parent faeaebd commit 8358e89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/three/controls/EnvironmentControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ export class EnvironmentControls extends EventDispatcher {

detach() {

this.domElement = null;

if ( this._detachCallback ) {

this._detachCallback();
Expand Down

0 comments on commit 8358e89

Please sign in to comment.