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.className = this.props.className;
document.body.appendChild(this.element);
this.tether = new Tether(this.getTetherConfig());
if (this.props.tetherRef) {
this.props.tetherRef(this.tether);
}
this.tether.position();
}