Skip to content

Commit

Permalink
Fixes an issue that returns incorrect cell instead of the displayed c…
Browse files Browse the repository at this point in the history
…ell in OnSelectRow Block
  • Loading branch information
Bilal Saifudeen authored and Bilal Saifudeen committed May 18, 2015
1 parent 9434745 commit 216d16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TableKit/TKTableModel.m
Expand Up @@ -108,7 +108,7 @@ - (void)didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
TKCellMapping *cellMapping = [self cellMappingForObject:object];

if (nil != cellMapping.onSelectRowBlock) {
UITableViewCell *cell = [self cellForRowAtIndexPath:indexPath];
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
cellMapping.onSelectRowBlock(cell, object, indexPath);
}
}
Expand Down

0 comments on commit 216d16e

Please sign in to comment.