diff --git a/dropdown/src/dropdown.jsx b/dropdown/src/dropdown.jsx index 6705fff..f88a782 100644 --- a/dropdown/src/dropdown.jsx +++ b/dropdown/src/dropdown.jsx @@ -8,7 +8,10 @@ var ListItem = require('./list-item'); module.exports = React.createClass({ handleClick: function() { - alert('hello from dropdown'); + this.setState({open: !this.state.open}); + }, + getInitialState: function(){ + return { open: false } }, render: function() { var list = this.props.items.map(function(item){ @@ -22,7 +25,7 @@ module.exports = React.createClass({ title={this.props.title} subTitleClassName="caret" /> -