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

Fix x-on in x-for when updating #418

Merged
merged 5 commits into from
May 8, 2020

Conversation

SimoTod
Copy link
Collaborator

@SimoTod SimoTod commented Apr 24, 2020

Fixes #413

When we update a x-for, if there is a new item we are wrongly calling update instead of insert. More details in the issue.

src/directives/for.js Outdated Show resolved Hide resolved
Copy link
Contributor

@HugoDF HugoDF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a typo, nice PR

test/for.spec.js Outdated Show resolved Hide resolved
SimoTod and others added 2 commits May 2, 2020 20:43
Co-authored-by: Hugo <HugoDF@users.noreply.github.com>
@calebporzio calebporzio merged commit c116279 into alpinejs:master May 8, 2020
@calebporzio
Copy link
Collaborator

Thanks @SimoTod for the fix, that was a tricky one - great work!

@SimoTod SimoTod deleted the feature/x-for-bindings branch November 20, 2021 00:26
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.

Events stop firing when I "change a page"
6 participants