Skip to content
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

[BUG] x-merge=prepend,append,update does not seem to work #45

Closed
dephiros opened this issue Jan 3, 2024 · 3 comments
Closed

[BUG] x-merge=prepend,append,update does not seem to work #45

dephiros opened this issue Jan 3, 2024 · 3 comments

Comments

@dephiros
Copy link

dephiros commented Jan 3, 2024

Hi,
I am testing out the lib and stumble upon an unexpected behavior trying to follow the doc.
Setting x-merge=append or prepend... does not seem to work.
I added a codepen and loom below. Apologize ahead of time if I miss something obvious
🙏

https://codepen.io/dephiros/pen/dyrGPQN

https://www.loom.com/share/b0d4eecace2447d5a61e73caee930d50?sid=970f5462-e73b-4d05-804b-53fea9e65bc5

@imacrayon
Copy link
Owner

Hey An, thank you for the thorough bug report. Looking into this now.

@imacrayon
Copy link
Owner

Yeah, so v0.4 changed x-merge to a proper Alpine directive instead of a plain HTML attribute. This meant that if x-merge wasn't inside an Alpine component (initialized with x-init or x-data) it stopped working.
v0.4.1 should fix this. Thanks!

@dephiros
Copy link
Author

dephiros commented Jan 3, 2024

@imacrayon , I tested the fixes and it worked 🎉 🙏

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

No branches or pull requests

2 participants