Skip to content

Commit

Permalink
Actually remember last valid container (jverkoey#724)
Browse files Browse the repository at this point in the history
In my jverkoey#723 PR I forgot to add code to actually remember the last valid container when the flag is set.
  • Loading branch information
Son-Le-Goog authored and featherless committed Jan 21, 2020
1 parent d8d4ba6 commit ab5f407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/attributedlabel/src/NIAttributedLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ - (void)setRememberLastValidContainer:(BOOL)rememberLastValidContainer {
}

- (void)setAccessibilityContainer:(id)accessibilityContainer {
if (self.isContainerDataValid && self.rememberLastValidContainer) {
self.lastValidContainer = self.accessibilityContainer;
}
self.isContainerDataValid = NO;
[super setAccessibilityContainer:accessibilityContainer];
}
Expand Down

0 comments on commit ab5f407

Please sign in to comment.