diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 7cb54f24ea9..6812d1051dc 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -65,6 +65,7 @@ void SpinBox::_text_submitted(const String &p_string) { // Ignore the prefix and suffix in the expression. Error err = expr->parse(num.trim_prefix(prefix + " ").trim_suffix(" " + suffix)); if (err != OK) { + _update_text(); return; }