Skip to content

Commit 0a867e6

Browse files
author
ws
committed
bugfix: fixup wasn't called when onSubmitted was null
1 parent 6262119 commit 0a867e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/base_spin_box.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ mixin SpinBoxMixin<T extends BaseSpinBox> on State<T> {
164164
if (hasFocus) {
165165
_selectAll();
166166
} else {
167-
widget.onSubmitted?.call(fixupValue(_controller.text));
167+
final value = fixupValue(_controller.text);
168+
widget.onSubmitted?.call(value);
168169
}
169170
});
170171
}

0 commit comments

Comments
 (0)