Skip to content

Commit

Permalink
bug fix when deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhimmelman committed Jan 14, 2016
1 parent 5088fba commit c66d926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/THContactTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ - (void)deleteBackward {
BOOL isTextFieldEmpty = (self.text.length == 0);
if (isTextFieldEmpty){
if (self.delegate && [self.delegate respondsToSelector:@selector(textFieldDidHitBackspaceWithEmptyText:)]){
[self.delegate textFieldDidHitBackspaceWithEmptyText:self];
dispatch_async(dispatch_get_main_queue(), ^{
[self.delegate textFieldDidHitBackspaceWithEmptyText:self];
});
}
}
[super deleteBackward];
Expand Down

0 comments on commit c66d926

Please sign in to comment.