fix: dispatch proxmox-all-stats-loaded event on window instead of document
Alpine.js @event.window modifier listens on window object, not document. This fix ensures the chartsLoaded state becomes true, removing the max-h-[260px] constraint and allowing all 4 graphs to display.
This commit is contained in:
@@ -4495,7 +4495,7 @@
|
||||
if (allExpectedChartsHaveData) {
|
||||
console.log('All expected charts have received data – stopping stats retries.');
|
||||
try {
|
||||
document.dispatchEvent(new CustomEvent('proxmox-all-stats-loaded'));
|
||||
window.dispatchEvent(new CustomEvent('proxmox-all-stats-loaded'));
|
||||
} catch (e) {}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user