How to use the semantic-ui-react/dist/commonjs/lib.doesNodeContainClick function in semantic-ui-react

To help you get started, we’ve selected a few semantic-ui-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plone / volto / src / components / manage / Toolbar / Types.jsx View on Github external
handleClickOutside = e => {
    if (this.ref && doesNodeContainClick(this.ref, e)) return;
    this.props.closeMenu();
  };
github plone / volto / src / components / manage / Sidebar / ObjectBrowserBody.jsx View on Github external
handleClickOutside = e => {
    if (
      this.objectBrowser &&
      doesNodeContainClick(this.objectBrowser.current, e)
    )
      return;
    this.props.closeObjectBrowser();
  };
github plone / volto / src / components / manage / Sidebar / SidebarBody.jsx View on Github external
handleClickOutside = e => {
    if (this.sidebar && doesNodeContainClick(this.sidebar.current, e)) return;
    this.props.closeSidebar();
  };
github plone / volto / src / components / manage / Blocks / Text / Edit.jsx View on Github external
handleClickOutside = e => {
    if (
      this.props.blockNode.current &&
      doesNodeContainClick(this.props.blockNode.current, e)
    )
      return;
    this.setState(() => ({
      addNewBlockOpened: false,
    }));
  };
github plone / volto / src / components / manage / Blocks / Text / Edit.jsx View on Github external
handleClickOutside = e => {
    if (
      this.props.blockNode.current &&
      doesNodeContainClick(this.props.blockNode.current, e)
    )
      return;
    this.setState(() => ({
      addNewBlockOpened: false,
    }));
  };
github plone / volto / src / components / manage / ObjectBrowser / ObjectBrowser.jsx View on Github external
handleClickOutside = e => {
    if (
      this.objectBrowser &&
      doesNodeContainClick(this.objectBrowser.current, e)
    )
      return;
    this.props.closeBrowser();
  };
github plone / volto / src / components / manage / AnchorPlugin / components / LinkButton / AddLinkForm.jsx View on Github external
handleClickOutside = e => {
    if (
      this.linkFormContainer.current &&
      doesNodeContainClick(this.linkFormContainer.current, e)
    )
      return;
    this.onClose();
  };
github plone / volto / src / components / manage / Tiles / Slider / Edit.jsx View on Github external
handleClickOutside = e => {
    if (this.node && doesNodeContainClick(this.node, e)) return;
    this.setState(() => ({
      currentSelectedCard: null,
    }));
  };
github plone / volto / src / components / manage / Toolbar / Toolbar.jsx View on Github external
handleClickOutside = e => {
    if (this.pusher && doesNodeContainClick(this.pusher, e)) return;
    this.closeMenu();
  };