Closed chris-steele closed 2 years ago
Propose change:
onItemsActiveChange(item, _isActive) {
if (!_isActive) return;
this.setStage(item);
this.setFocus(item.get('_index'));
}
to
onItemsActiveChange(item, _isActive) {
if (!_isActive) return;
if (this.isTextBelowImage()) {
item.toggleVisited(true);
}
this.setStage(item);
this.setFocus(item.get('_index'));
}
If
_setCompletionOn
is set toallItems
and_isMobileTextBelowImage
istrue
then the component will not complete once all items have been visited on mobile devices.N.B. this is because
_isVisited
is only set totrue
when the display text is opened in an overlay.