Skip to content

Commit c813a75

Browse files
build
1 parent f2846b2 commit c813a75

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/react-simpletabs.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ return /******/ (function(modules) { // webpackBootstrap
170170
},
171171
_getSelectedPanel:function () {
172172
var index = this.state.tabActive - 1;
173-
var $panel = this.props.children[index];
173+
var $panel
174+
React.Children.forEach(this.props.children, function ($item, i) {
175+
if (index === itemIndex) {
176+
$panel = $item;
177+
return;
178+
}
179+
})
174180

175181
return (
176182
React.createElement("article", {ref: "tab-panel", className: "tab-panel"},

dist/react-simpletabs.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)