fix: три бага — drawGlow closure, replaceChild null guard, stoich text overflow

This commit is contained in:
Maxim Dolgolyov
2026-05-26 15:38:37 +03:00
parent 7a323f8fe0
commit 9ef9443096
3 changed files with 15 additions and 7 deletions
+1
View File
@@ -2728,6 +2728,7 @@ PeriodicTableSim.prototype._switchInteractiveMode = function(modeId) {
c.addEventListener('mouseleave', function() { c.style.filter = ''; c.style.transform = ''; c.style.zIndex = ''; });
c.addEventListener('click', function() { self._selectElement(z); });
})(clone, el.Z);
if (!div.parentNode) continue;
div.parentNode.replaceChild(clone, div);
this._cellMap[el.Z] = clone;
}