Skip to content

[LiveComponent] Fix morphing issues with an Alpine.js component, close #984 #1126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Sep 19, 2023

Q A
Bug fix? yes
New feature? no
Tickets Fix #984
License MIT

This PR is a proposal for #984.
As I encountered the same issue than @richardhj when using Alpine.js with a LiveComponent, and I wanted to fix it ASAP.

I've added some checks and errors messages in order to help the dev if needed.

@weaverryan
Copy link
Member

Thanks Hugo! FYI, we have an issue to change our morphin g in general to @alpinejs/morph - so hopefully that'll make this code unnecessary soon anyway. But happy to support Alpine.js well

@weaverryan weaverryan merged commit 998c287 into symfony:2.x Sep 22, 2023
@Kocal
Copy link
Member Author

Kocal commented Sep 22, 2023

Oh yeah, didn't see this one #957, it could be a nice improvement :)

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.

[Live] Access on Morphdom's onBeforeElUpdated callback - Alpine.JS compatibility
2 participants