MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / getRole

Function getRole

src/DropdownMenu.js:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43class DropdownMenu extends React.Component {
44 getRole() {
45 if (this.context.menuRole === 'listbox') {
46 return 'listbox';
47 }
48 return 'menu';
49 }
50
51 render() {
52 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…