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

Method getTabIndex

src/DropdownItem.js:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 getTabIndex() {
53 const { disabled, header, divider, text } = this.props;
54 if (disabled || header || divider || text) {
55 return '-1';
56 }
57
58 return '0';
59 }
60
61 render() {
62 const tabIndex = this.getTabIndex();

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected