Skip to content

Don't mount choo to body#316

Open
emptyflash wants to merge 2 commits into
hydra-synth:mainfrom
emptyflash:main
Open

Don't mount choo to body#316
emptyflash wants to merge 2 commits into
hydra-synth:mainfrom
emptyflash:main

Conversation

@emptyflash
Copy link
Copy Markdown
Member

Not sure if this would break some people's setup, so I'm open to alternative ways of doing this.

Essentially I want other elements programmatically added to the body by extensions to be able to persist between code updates. Currently because choo is mounted to body it causes changes to clear elements.

@alvarobyrne
Copy link
Copy Markdown

alvarobyrne commented Apr 27, 2026

In the meantime if you want to append some to, say the body, you may do some like:

setTimeout(() => {
  b = document.createElement("button");
  document.body.appendChild(b);
  b.style.zIndex = 30000;
  b.style.position = "fixed";
  b.innerText = "we love repetition";
  b.addEventListener("click", (event) => {
    console.log(Math.random());
  });
}, 100);

Agree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants