|
|
@ -18,13 +18,13 @@ EditableLabel.prototype.render = function() { |
|
|
|
if (state && state.isEditingLabel) { |
|
|
|
if (state && state.isEditingLabel) { |
|
|
|
|
|
|
|
|
|
|
|
return h('div.editable-label', [ |
|
|
|
return h('div.editable-label', [ |
|
|
|
h('input', { |
|
|
|
h('input.editable-input', { |
|
|
|
defaultValue: props.textValue, |
|
|
|
defaultValue: props.textValue, |
|
|
|
onKeyPress:(event) => { |
|
|
|
onKeyPress:(event) => { |
|
|
|
this.saveIfEnter(event) |
|
|
|
this.saveIfEnter(event) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
h('button', { |
|
|
|
h('button.editable-button', { |
|
|
|
onClick:() => this.saveText(), |
|
|
|
onClick:() => this.saveText(), |
|
|
|
}, 'Save') |
|
|
|
}, 'Save') |
|
|
|
]) |
|
|
|
]) |
|
|
|