The default props doesn't seem to be working, hardcoded 'LABEL' for now. OnClick closes menu
This commit is contained in:
parent
7eff6d968e
commit
204e42494a
|
@ -29,10 +29,16 @@ module.exports = React.createClass({
|
|||
return({ label : "LABEL" });
|
||||
},
|
||||
|
||||
onLabelClick: function() {
|
||||
if (this.props.onFinished) this.props.onFinished();
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
{ this.props.label }
|
||||
<div className="mx_ContextualMenu_field" onClick={ this.onLabelClick }>
|
||||
LABEL
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue