Closed mscolnick closed 3 weeks ago
I'm aware. But the old system had a worse problem, and I don't think there's a reasonable way to preserve event handlers on cloned nodes. Using a function is a much better solution anyway, since you'll actually have access to the view, which you probably need for most kinds of click interactions, and which was very awkward to get in the old style. So this is not something that's going to change.
Sounds good, totally ok with that path forward. Thanks for the great work on this library.
Describe the issue
Since codemirror/view 6.34.0, the
cloneNode
on placeholder will remove any event listeners. I think the workaround is to pass in a function, but this was a subtle regressionhttps://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode
Browser and platform
No response
Reproduction link
No response