Skip to content

Commit

Permalink
NumericStepper: fix valueParseFunction being ignored
Browse files Browse the repository at this point in the history
It was checking if valueFormatFunction is not null, instead of checking valueParseFunction
  • Loading branch information
joshtynjala committed Oct 24, 2024
1 parent 416ee14 commit 93454e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feathers/controls/NumericStepper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93454e4

Please sign in to comment.