From 46657794a66eeafc424ed25cf430e1781564d74a Mon Sep 17 00:00:00 2001 From: Wei Jian Gan Date: Mon, 9 Dec 2019 17:37:06 +0800 Subject: [PATCH] calculateNextValue return key instead of object calculateNextValue incorrectly returns mark object instead of value when steps are disabled --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 5c3557865..70cedbac7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -90,7 +90,7 @@ export function calculateNextValue(func, value, props) { if (props.step) { return operations[func](value, props.step); } else if (!!Object.keys(props.marks).length && !!props.marks[keyToGet]) { - return props.marks[keyToGet]; + return keyToGet; } return value; }