Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
show() {
document.addEventListener('click', this.handleDocumentClick, true);
this._element = document.createElement('div');
this._element.className = this.props.className;
document.body.appendChild(this._element);
this.renderIntoSubtree();
this._tether = new Tether(this.getTetherConfig());
this.props.tetherRef(this._tether);
this._tether.position();
this._element.childNodes[0].focus();
}
show() {
document.addEventListener('click', this.handleDocumentClick, true);
this._element = document.createElement('div');
this._element.className = this.props.className;
document.body.appendChild(this._element);
this.renderIntoSubtree();
this._tether = new Tether(this.getTetherConfig());
this.props.tetherRef(this._tether);
this._tether.position();
this._element.childNodes[0].focus();
}