mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
textbox validation fix
This commit is contained in:
parent
54629b0b6c
commit
4ad48bdb63
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ void TextBox::typed(unsigned int codepoint) {
|
||||||
|
|
||||||
bool TextBox::validate() {
|
bool TextBox::validate() {
|
||||||
if (validator) {
|
if (validator) {
|
||||||
valid = validator(input);
|
valid = validator(getText());
|
||||||
} else {
|
} else {
|
||||||
valid = true;
|
valid = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue