Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 6, 2015
1 parent 892476c commit 98325dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/react-simpletabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ return /******/ (function(modules) { // webpackBootstrap
},
_getSelectedPanel:function () {
var index = this.state.tabActive - 1;
var $panel = this.props.children[index];
var $panel
React.Children.forEach(this.props.children, function ($item, i) {
if (index === i) {
$panel = $item;
return;
}
})

return (
React.createElement("article", {ref: "tab-panel", className: "tab-panel"},
Expand Down
2 changes: 1 addition & 1 deletion dist/react-simpletabs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98325dd

Please sign in to comment.