Skip to content

Commit

Permalink
Bug fixes of incorrect key/value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 20, 2017
1 parent b067d93 commit 21b1163
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
14 changes: 5 additions & 9 deletions docs/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -26885,10 +26885,8 @@ var DropdownButton = (_temp = _class = function (_PureComponent) {

var dropdownProps = {};
var toggleProps = {};
Object.keys(props).forEach(function (entry) {
var propName = entry[0],
propValue = entry[1];

Object.keys(props).forEach(function (propName) {
var propValue = props[propName];
if (_Dropdown2.default.ControlledComponent.propTypes[propName]) {
dropdownProps[propName] = propValue;
} else {
Expand Down Expand Up @@ -27267,10 +27265,8 @@ var DropdownSubMenu = (_temp2 = _class = function (_Component) {
// Split component props
var toggleProps = {};
var menuProps = {};
Object.keys(props).forEach(function (entry) {
var propName = entry[0],
propValue = entry[1];

Object.keys(props).forEach(function (propName) {
var propValue = props[propName];
if (_reactAnchor2.default.propTypes[propName]) {
toggleProps[propName] = propValue;
} else {
Expand Down Expand Up @@ -29848,4 +29844,4 @@ if(false) {
/***/ })

/******/ });
//# sourceMappingURL=bundle.js.map?9edfe9e1124ff2bfa44a
//# sourceMappingURL=bundle.js.map?54290b8185b9ba64f057
2 changes: 1 addition & 1 deletion docs/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="bundle.js?9edfe9e1124ff2bfa44a"></script></body>
<script type="text/javascript" src="bundle.js?54290b8185b9ba64f057"></script></body>
</html>
4 changes: 2 additions & 2 deletions src/DropdownButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class DropdownButton extends PureComponent {
// Split component props
const dropdownProps = {};
const toggleProps = {};
Object.keys(props).forEach(entry => {
const [propName, propValue] = entry;
Object.keys(props).forEach(propName => {
const propValue = props[propName];
if (Dropdown.ControlledComponent.propTypes[propName]) {
dropdownProps[propName] = propValue;
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/DropdownSubMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class DropdownSubMenu extends Component {
// Split component props
const toggleProps = {};
const menuProps = {};
Object.keys(props).forEach(entry => {
const [propName, propValue] = entry;
Object.keys(props).forEach(propName => {
const propValue = props[propName];
if (Anchor.propTypes[propName]) {
toggleProps[propName] = propValue;
} else {
Expand Down

0 comments on commit 21b1163

Please sign in to comment.