The default props doesn't seem to be working, hardcoded 'LABEL' for now. OnClick closes menu

This commit is contained in:
wmwragg 2016-07-22 16:11:42 +01:00
parent 7eff6d968e
commit 204e42494a
1 changed files with 7 additions and 1 deletions

View File

@ -29,10 +29,16 @@ module.exports = React.createClass({
return({ label : "LABEL" }); return({ label : "LABEL" });
}, },
onLabelClick: function() {
if (this.props.onFinished) this.props.onFinished();
},
render: function() { render: function() {
return ( return (
<div> <div>
{ this.props.label } <div className="mx_ContextualMenu_field" onClick={ this.onLabelClick }>
LABEL
</div>
</div> </div>
); );
} }