The bug was caused by the interest dialog not closing and therefore preventing the user from interacting with the rest of the page. I used a boolean variable called openedInterestDialog to track whether the interest dialog was open. If it was and the back button was clicked, the interest dialog was closed first.
scope._onBackClick = function(event) {
if (openedInterestPopup) {
// close existing dialog box and then execute the
// contents of the back button
$('.interest-dialog').each(function(i, dialog) {
dialog.close();
openedInterestPopup = false;
});
}
$('.gt-info-video').remove();
this.$.pages.selected = 0;
};
The bug was caused by the interest dialog not closing and therefore preventing the user from interacting with the rest of the page. I used a boolean variable called
openedInterestDialog
to track whether the interest dialog was open. If it was and the back button was clicked, the interest dialog was closed first.