forked from matrix/element-web
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" });
|
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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue