How to use the @instructure/ui-dom-utils.handleMouseOverOut.bind function in @instructure/ui-dom-utils

To help you get started, we’ve selected a few @instructure/ui-dom-utils 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 instructure / instructure-ui / packages / ui-popover / src / Popover / index.js View on Github external
super(props)

    this.state = {
      placement: props.placement,
      offsetX: props.offsetX,
      offsetY: props.offsetY
    }

    if (typeof props.isShowingContent === 'undefined' && typeof props.show === 'undefined') {
      this.state.isShowingContent = props.defaultIsShowingContent || props.defaultShow
    }

    this._id = this.props.id || uid('Popover')
    this._raf = []

    this._handleMouseOver = handleMouseOverOut.bind(null, (event) => {
      this.show(event)
    })
    this._handleMouseOut = handleMouseOverOut.bind(null, (event) => {
      this.hide(event)
    })
  }
github instructure / instructure-ui / packages / ui-popover / src / Popover / index.js View on Github external
placement: props.placement,
      offsetX: props.offsetX,
      offsetY: props.offsetY
    }

    if (typeof props.isShowingContent === 'undefined' && typeof props.show === 'undefined') {
      this.state.isShowingContent = props.defaultIsShowingContent || props.defaultShow
    }

    this._id = this.props.id || uid('Popover')
    this._raf = []

    this._handleMouseOver = handleMouseOverOut.bind(null, (event) => {
      this.show(event)
    })
    this._handleMouseOut = handleMouseOverOut.bind(null, (event) => {
      this.hide(event)
    })
  }