pull/1654/head
Jamie 7 years ago
parent 5a07a69a33
commit ced32d1adc

@ -51,7 +51,7 @@ export class TvSearchComponent implements OnInit, OnDestroy {
public openClosestTab(el: any) { public openClosestTab(el: any) {
el.preventDefault(); el.preventDefault();
const rowclass = "undefined"; const rowclass = "undefined";
el = el.toElement; el = el.toElement || el.relatedTarget || el.target;
while (el.className !== rowclass) { while (el.className !== rowclass) {
// Increment the loop to the parent node until we find the row we need // Increment the loop to the parent node until we find the row we need
el = el.parentNode; el = el.parentNode;

Loading…
Cancel
Save