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