How to use the @instructure/ui-react-utils.polyfill function in @instructure/ui-react-utils

To help you get started, we’ve selected a few @instructure/ui-react-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-focusable / src / Focusable / index.js View on Github external
return false
  }

  render () {
    const { children, render = children } = this.props
    const { focusable, focused } = this.state

    if (typeof render === 'function') {
      return render({ focused, focusable, focusVisible: this.isFocusVisible(focusable, focused) })
    } else {
     return null
    }
  }
}

polyfill(Focusable)

export default Focusable
export { Focusable }
export { default as FocusableView } from '../FocusableView'