Skip to content

Commit 204e424

Browse files
committed
The default props doesn't seem to be working, hardcoded 'LABEL' for now. OnClick closes menu
1 parent 7eff6d9 commit 204e424

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/components/views/elements/Label.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ module.exports = React.createClass({
2929
return({ label : "LABEL" });
3030
},
3131

32+
onLabelClick: function() {
33+
if (this.props.onFinished) this.props.onFinished();
34+
},
35+
3236
render: function() {
3337
return (
3438
<div>
35-
{ this.props.label }
39+
<div className="mx_ContextualMenu_field" onClick={ this.onLabelClick }>
40+
LABEL
41+
</div>
3642
</div>
3743
);
3844
}

0 commit comments

Comments
 (0)