How to use the @material/drawer.util.createFocusTrapInstance function in @material/drawer

To help you get started, we’ve selected a few @material/drawer 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 material-components / material-components-web-react / packages / drawer / index.js View on Github external
initializeFocusTrap = () => {
    this.focusTrap_ = util.createFocusTrapInstance(this.drawerElement_.current);
  }
github material-components / material-components-web-react / packages / drawer / index.tsx View on Github external
private initializeFocusTrap = () => {
    this.focusTrap = util.createFocusTrapInstance(this.drawerElement.current!);
  };