fix fatal error on editing texbox not having any consumer
This commit is contained in:
@@ -504,7 +504,7 @@ void TextBox::performEditingKeyboardEvents(keycode key) {
|
|||||||
paste(L"\n");
|
paste(L"\n");
|
||||||
} else {
|
} else {
|
||||||
defocus();
|
defocus();
|
||||||
if (validate()) {
|
if (validate() && consumer) {
|
||||||
consumer(label->getText());
|
consumer(label->getText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user