Merge pull request #1189 from influxdata/bugfix/1146-click-outside-graph-name
Prevent Blur when Clicking Inside Graph Namepull/10616/head
commit
7b19fbb068
|
@ -15,6 +15,7 @@
|
|||
1. [#1178](https://github.com/influxdata/chronograf/pull/1178): Repair DataExplorer+CellEditorOverlay's QueryBuilder in Safari
|
||||
1. [#979](https://github.com/influxdata/chronograf/issues/979): Fix empty tags for non-default retention policies
|
||||
1. [#1179](https://github.com/influxdata/chronograf/pull/1179): Admin Databases Page will render a database without retention policies
|
||||
1. [#1189](https://github.com/influxdata/chronograf/pull/1189): Clicking inside the graph header edit box will no longer blur the field. Use the Escape key for that behavior instead.
|
||||
|
||||
### Features
|
||||
1. [#1112](https://github.com/influxdata/chronograf/pull/1112): Add ability to delete a dashboard
|
||||
|
|
|
@ -80,6 +80,9 @@ const NameableGraph = React.createClass({
|
|||
if (evt.key === 'Enter') {
|
||||
onUpdateCell(cell)()
|
||||
}
|
||||
if (evt.key === 'Escape') {
|
||||
onEditCell(x, y, true)()
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
@ -88,7 +91,7 @@ const NameableGraph = React.createClass({
|
|||
}
|
||||
|
||||
let onClickHandler
|
||||
if (isEditable) {
|
||||
if (!isEditing && isEditable) {
|
||||
onClickHandler = onEditCell
|
||||
} else {
|
||||
onClickHandler = () => {
|
||||
|
|
Loading…
Reference in New Issue