From 93454e46dbcb263371faabdff62596aa86049cb7 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Thu, 24 Oct 2024 15:07:17 -0700 Subject: [PATCH] NumericStepper: fix valueParseFunction being ignored It was checking if valueFormatFunction is not null, instead of checking valueParseFunction --- src/feathers/controls/NumericStepper.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feathers/controls/NumericStepper.hx b/src/feathers/controls/NumericStepper.hx index fbfec022..507a47e4 100644 --- a/src/feathers/controls/NumericStepper.hx +++ b/src/feathers/controls/NumericStepper.hx @@ -917,7 +917,7 @@ class NumericStepper extends FeathersControl implements IRange implements IStage private function parseTextInputValue():Void { var newValue = this._value; - if (this._valueFormatFunction != null) { + if (this._valueParseFunction != null) { newValue = this._valueParseFunction(this.textInput.text); } else { newValue = Std.parseFloat(this.textInput.text);