How to use makeup-screenreader-trap - 2 common examples

To help you get started, we’ve selected a few makeup-screenreader-trap 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 bigbluebutton / bigbluebutton / bigbluebutton-html5 / imports / ui / components / dropdown / component.jsx View on Github external
componentWillUpdate(nextProps, nextState) {
    //if (nextState.isOpen) return screenreaderTrap.trap(this.dropdown);
    //if (!nextState.isOpen) return screenreaderTrap.untrap();
    return nextState.isOpen ? screenreaderTrap.trap(this.dropdown) : screenreaderTrap.untrap();
  }
github bigbluebutton / bigbluebutton / bigbluebutton-html5 / imports / ui / components / dropdown / component.jsx View on Github external
componentWillUpdate(nextProps, nextState) {
    return nextState.isOpen ? screenreaderTrap.trap(this.dropdown) : screenreaderTrap.untrap();
  }

makeup-screenreader-trap

Restricts screen reader virtual cursor to a single subtree in the DOM

MIT
Latest version published 29 days ago

Package Health Score

66 / 100
Full package analysis

Popular makeup-screenreader-trap functions