Allow negative values for both gauge and single-stat thresholds

pull/10616/head
Alex P 2017-12-08 14:53:23 -08:00
parent d595f8eaa8
commit 739a661d5a
2 changed files with 1 additions and 2 deletions

View File

@ -155,7 +155,7 @@ class CellEditorOverlay extends Component {
// If type === min, make sure it is less than the next threshold
if (threshold.type === COLOR_TYPE_MIN) {
const nextValue = Number(sortedColors[1].value)
allowedToUpdate = targetValueNumber < nextValue && targetValueNumber >= 0
allowedToUpdate = targetValueNumber < nextValue
}
// If type === max, make sure it is greater than the previous threshold
if (threshold.type === COLOR_TYPE_MAX) {

View File

@ -87,7 +87,6 @@ class Threshold extends Component {
type="number"
onChange={this.handleChangeWorkingValue}
onBlur={this.handleBlur}
min={0}
/>
<ColorDropdown
colors={GAUGE_COLORS}