Merge pull request #88794 from ryevdokimov/fix-spinbox
If SpinBox text can't be parsed use last updated text
This commit is contained in:
commit
b431314e8f
|
@ -83,6 +83,7 @@ void SpinBox::_text_submitted(const String &p_string) {
|
||||||
|
|
||||||
err = expr->parse(text);
|
err = expr->parse(text);
|
||||||
if (err != OK) {
|
if (err != OK) {
|
||||||
|
_update_text();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue