Don't close cell headers when editing.
parent
8e0dfa43f4
commit
bace483af4
|
@ -80,6 +80,9 @@ const NameableGraph = React.createClass({
|
|||
if (evt.key === 'Enter') {
|
||||
onUpdateCell(cell)()
|
||||
}
|
||||
if (evt.key === 'Escape') {
|
||||
onEditCell(x, y, false)()
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
@ -88,7 +91,7 @@ const NameableGraph = React.createClass({
|
|||
}
|
||||
|
||||
let onClickHandler
|
||||
if (isEditable) {
|
||||
if (!isEditing && isEditable) {
|
||||
onClickHandler = onEditCell
|
||||
} else {
|
||||
onClickHandler = () => {
|
||||
|
|
Loading…
Reference in New Issue