Skip to content

Commit

Permalink
fix(ios): require “canMove” property to be true
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Aug 27, 2022
1 parent f1858bb commit f202a6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,10 @@ - (BOOL)canMoveRowAtIndexPath:(NSIndexPath *)indexPath

- (nonnull NSArray<UIDragItem *> *)tableView:(nonnull UITableView *)tableView itemsForBeginningDragSession:(nonnull id<UIDragSession>)session atIndexPath:(nonnull NSIndexPath *)indexPath
{
if (![self canMoveRowAtIndexPath:indexPath]) {
return @[];
}

NSItemProvider *itemProvider = [NSItemProvider new];
NSString *identifier = [NSString stringWithFormat:@"%lu_%lu", indexPath.section, indexPath.row];

Expand Down

0 comments on commit f202a6e

Please sign in to comment.