From 3b1ecaef86daa0d9788ca5222057833885b21c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Wed, 23 Oct 2024 20:19:00 +0200 Subject: [PATCH] fix(UI): Don't enable StatisticsButton when create overflow menu (#7481) --- ui/statistics_button.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/statistics_button.js b/ui/statistics_button.js index 64c7c8c0c9..90f9885b5c 100644 --- a/ui/statistics_button.js +++ b/ui/statistics_button.js @@ -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); }