We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4863f commit 276db69Copy full SHA for 276db69
lib/tabs.js
@@ -85,6 +85,10 @@ module.exports = React.createClass({
85
return React.Children.count(this.props.children.slice(1));
86
},
87
88
+ getTabList: function () {
89
+ return this.refs.tablist;
90
+ },
91
+
92
getTab: function (index) {
93
return this.refs['tabs-' + index];
94
@@ -150,6 +154,7 @@ module.exports = React.createClass({
150
154
// Clone TabList and Tab components to have refs
151
155
if (count++ === 0) {
152
156
result = React.addons.cloneWithProps(child, {
157
+ ref: 'tablist',
153
158
children: React.Children.map(child.props.children, function (tab) {
159
var ref = 'tabs-' + index,
160
id = state.tabIds[index],
0 commit comments