Skip to content

Commit

Permalink
fix(UI): Don't enable StatisticsButton when create overflow menu (#7481)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Oct 24, 2024
1 parent 1b4ea37 commit 3b1ecae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui/statistics_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ shaka.ui.StatisticsButton = class extends shaka.ui.Element {
const element = this.generateComponent_(name);
this.container_.appendChild(element);
this.statisticsList_.push(name);
shaka.ui.Utils.setDisplay(element.parentElement,
!isNaN(this.currentStats_[name]));
} else {
shaka.log.alwaysWarn('Unrecognized statistic element:', name);
}
Expand Down

0 comments on commit 3b1ecae

Please sign in to comment.