79658265

Date: 2025-06-09 01:30:14
Score: 1.5
Natty:
Report link

Alright, I've found the solution.

What I did was to re-add every event listener whenever I needed a new one, by replacing

text = getInput(pieceidx);
getInput(pieceidx).addEventListener('focus', function() {text = getInput(pieceidx); });
addListeners(text);

with

for (i = 0; i <= pieceidx; i++) {
    text = getInput(i);
    getInput(pieceidx).addEventListener('focus', function() {text = getInput(pieceidx); });
    addListeners(i);
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DiamondNether90