-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I'm thrilled this library exists. Hot-reloading rails apps has been a headache, and it seems like all the pieces are here for a great experience.
I have this little bit of code in my app to tell turbo to leave the dialog element's attributes alone, so that I can close it with an animation.
document.on("turbo:before-morph-attribute", (e) => {
if (e.target instanceof HTMLDialogElement) {
e.preventDefault();
}
});
With spark, this didn't work. Spark uses the idomorph library directly. It appears there is no way to setup a callback like the one above.
Would you like me to try and add this? If so, give me a rough design for how you'd do it. A "prompt" if you will. 😆
Thanks again,
James
Metadata
Metadata
Assignees
Labels
No labels