I’m working on a test generator for gallery prompt searching here: https://perchance.org/gallery-search-forking-rudbo

It’s forked from prompt-hunter, created by the author of AI Art Generator (Advanced).

The issue arises when I try to implement this into another test generator: https://perchance.org/friendly-notification-and-concept-board-animation In this version, the search button doesn’t update the gallery as expected.

It seems like the gallery either needs to be enforced via iframe or replaced with a local component—but neither approach has worked so far.

Strangely, if I click the toggle theme button, the search button suddenly works once. So I tried adding the following logic to the search button:

onclick="changeAll(tagInputEl.value); update(panelCtn);"

and then also tried:

onclick="changeAll(tagInputEl.value); update(panelCtn); update(galleryContentEl);"

Still no effect.

Any suggestions or insights would be greatly appreciated!