MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / getRole

Method getRole

src/DropdownItem.js:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 getRole() {
46 if (this.context.menuRole === 'listbox') {
47 return 'option';
48 }
49 return 'menuitem';
50 }
51
52 getTabIndex() {
53 const { disabled, header, divider, text } = this.props;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected