diff --git a/Source/ASCollectionView.mm b/Source/ASCollectionView.mm index 4543d1196..06ff05637 100644 --- a/Source/ASCollectionView.mm +++ b/Source/ASCollectionView.mm @@ -2044,6 +2044,7 @@ - (ASCellNodeBlock)dataController:(ASDataController *)dataController supplementa } // Wrap the node block + BOOL disableRangeController = ASCellLayoutModeIncludes(ASCellLayoutModeDisableRangeController); __weak __typeof__(self) weakSelf = self; return ^{ __typeof__(self) strongSelf = weakSelf; @@ -2051,6 +2052,9 @@ - (ASCellNodeBlock)dataController:(ASDataController *)dataController supplementa ASDisplayNodeAssert([node isKindOfClass:[ASCellNode class]], @"ASCollectionNode provided a non-ASCellNode! %@, %@", node, strongSelf); + if (!disableRangeController) { + [node enterHierarchyState:ASHierarchyStateRangeManaged]; + } if (node.interactionDelegate == nil) { node.interactionDelegate = strongSelf; }