You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Merge pull request #81094 from OXTyler/81071
Fix SpinBox not clearing text on improper input
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user