Skip to content

Commit

Permalink
fix(ios): itemclick event its firing instead of a move event when ord…
Browse files Browse the repository at this point in the history
…ering items in a list iOS 13+ (#11805)

Co-authored-by: ssekhri <ssekhri@axway.com>
  • Loading branch information
vijaysingh-axway and ssekhri committed Jul 8, 2020
1 parent 7aa5290 commit 40cc28d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,12 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
[self fireClickForItemAtIndexPath:[self pathForSearchPath:indexPath] tableView:tableView accessoryButtonTapped:YES];
// TIMOB-27994: This delegate should called only when accessory detail button is clicked.
// If tableView is in edit mode, accessory buttons (detail button) does not appear.
// But in iOS 13+, On click of 'reorder control' this delegate is called (probably a bug). So following condition applied.
if (!tableView.isEditing) {
[self fireClickForItemAtIndexPath:[self pathForSearchPath:indexPath] tableView:tableView accessoryButtonTapped:YES];
}
}

#pragma mark - ScrollView Delegate
Expand Down

0 comments on commit 40cc28d

Please sign in to comment.