Skip to content

Commit

Permalink
Fix[profile editor]: check textfield origin before ending editing
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Sep 17, 2023
1 parent c8304e4 commit 980ddd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Natives/LauncherProfileEditorViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ - (void)actionClose {
- (void)actionDone {
// We might be saving without ending editing, so make sure textFieldDidEndEditing is always called
UITextField *currentTextField = [self performSelector:@selector(_firstResponder)];
if ([currentTextField isKindOfClass:UITextField.class]) {
if ([currentTextField isKindOfClass:UITextField.class] && [currentTextField isDescendantOfView:self.tableView]) {
[self textFieldDidEndEditing:currentTextField];
}

Expand Down

0 comments on commit 980ddd3

Please sign in to comment.