From e951713b98f389d4e5c36819da58abfbd9a1786a Mon Sep 17 00:00:00 2001 From: dmt0 Date: Thu, 18 Oct 2018 21:02:34 -0400 Subject: [PATCH] allow fractional values in NumericReciprocal --- src/components/fields/derived.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/fields/derived.js b/src/components/fields/derived.js index 0785c8748..6d0d63ead 100644 --- a/src/components/fields/derived.js +++ b/src/components/fields/derived.js @@ -305,7 +305,7 @@ export const NumericReciprocal = connectToContainer(UnconnectedNumeric, { const {fullValue, updatePlot} = plotProps; if (isNumeric(fullValue)) { - plotProps.fullValue = Math.round(1 / fullValue); + plotProps.fullValue = 1 / fullValue; } plotProps.updatePlot = v => { @@ -316,7 +316,7 @@ export const NumericReciprocal = connectToContainer(UnconnectedNumeric, { } }; - plotProps.min = 1; + plotProps.min = 0; }, });