Whenever i try to edit my perchance generator in ANY way, it outputs this error whenever i try to type in a prompt: " An error has occurred somewhere in your code (in lists or HTML): There was an error in the oninput attribute of this element in your HTML panel: . Here’s the error: TypeError: Cannot read properties of undefined (reading ‘closest’)"
I think it is caused by the
visible()
function, since it is looking for the closest item to hide/show after number of generation clicks. After hitting the generation a few times, the errors doesn’t show anymore.