Merge pull request #1189 from influxdata/bugfix/1146-click-outside-graph-name

Prevent Blur when Clicking Inside Graph Name
pull/10616/head
Hunter Trujillo 2017-04-05 15:47:58 -06:00 committed by GitHub
commit 7b19fbb068
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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 = () => {