Closed ValentinaPC closed 7 years ago
Cause is TypeError we just need to work out the specific line triggering it.
"thumbnail" is not defined
The bug is in this line of code:
options.getThumbBoundsFn = options.getThumbBoundsFn || function (index) {
var thumbnail = _reactDom2['default'].findDOMNode(_this.refs['thumbnail' + index]);
var img = thumbnail.getElementsByTagName('img')[0];
var pageYScroll = window.pageYOffset || document.documentElement.scrollTop;
var rect = img.getBoundingClientRect();
return { x: rect.left, y: rect.top + pageYScroll, w: rect.width };
};
in the PhotoSwipeGallery component.
Verified as fixed on AMO-dev FF51(Android 6.0.1) Postfix video:
Steps to reproduce:
Expected results: User can navigate through screenshots in full mode preview with not problems.
Actual results: Screenshots section turns into with for the second add-on. Screenshot cannot longer be previewed.
Notes/Issues: Verified on AMO-dev FF51(Android 6.0.1). Video for this issue: