diff options
-rw-r--r-- | ui/app/components/editable-label.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/editable-label.js b/ui/app/components/editable-label.js index 34fd7e3e0..05ffd4c92 100644 --- a/ui/app/components/editable-label.js +++ b/ui/app/components/editable-label.js @@ -18,7 +18,7 @@ EditableLabel.prototype.render = function () { return h('div.editable-label', [ h('input.sizing-input', { defaultValue: props.textValue, - maxLength: "30", + maxLength: '30', onKeyPress: (event) => { this.saveIfEnter(event) }, @@ -45,7 +45,7 @@ EditableLabel.prototype.saveIfEnter = function (event) { EditableLabel.prototype.saveText = function () { var container = findDOMNode(this) var text = container.querySelector('.editable-label input').value - var truncatedText = text.substring(0,30) + var truncatedText = text.substring(0, 30) this.props.saveText(truncatedText) this.setState({ isEditingLabel: false, textLabel: truncatedText }) } |