Fix shared media scroll stuck

This commit is contained in:
morethanwords 2021-04-14 12:33:37 +04:00
parent ba3551c0c3
commit 6ff886d580

View File

@ -1112,8 +1112,8 @@ export default class AppSearchSuper {
this.container.classList.toggle('hide', !firstMediaTab); this.container.classList.toggle('hide', !firstMediaTab);
this.container.parentElement.classList.toggle('search-empty', !firstMediaTab); this.container.parentElement.classList.toggle('search-empty', !firstMediaTab);
this.selectTab(this.mediaTabs.indexOf(firstMediaTab), false);
if(firstMediaTab) { if(firstMediaTab) {
this.selectTab(this.mediaTabs.indexOf(firstMediaTab), false);
firstMediaTab.menuTab.classList.add('active'); firstMediaTab.menuTab.classList.add('active');
} }
} }