handleClickOutside()

in src/components/view/LabelWithAlias/LabelWithAlias.tsx [64:68]


  handleClickOutside(event: any) {
    if (this.wrapperRef && !this.wrapperRef.current.contains(event.target) && this.state.showContextMenu) {
      this.setState({ showContextMenu: false });
    }
  }