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

JS Regression #429

Closed
jmooring opened this issue Jul 28, 2021 · 5 comments
Closed

JS Regression #429

jmooring opened this issue Jul 28, 2021 · 5 comments

Comments

@jmooring
Copy link
Contributor

document.addEventListener('alpine:init', () => {
    Alpine.data('dropdown', () => ({
        open: false,

        toggle() {
            this.open = ! this.open
        },
    }))
})

2.9.10 (PASS)

document.addEventListener('alpine:init',()=>{Alpine.data('dropdown',()=>({open:!1,toggle(){this.open=!this.open}}))})

2.9.11 (FAIL)

document.addEventListener('alpine:init',()=>{Alpine.data('dropdown',()=>({open:!1,toggle(){this.open=!this.open)}})})

2.9.20 (FAIL)

document.addEventListener('alpine:init',()=>{Alpine.data('dropdown',()=>({open:!1,toggle(){this.open=!this.open)}})})
@tdewolff
Copy link
Owner

Thanks, should now be fixed!

@jmooring
Copy link
Contributor Author

@tdewolff How was it fixed? The last commit was two days ago. Thanks!

@tdewolff
Copy link
Owner

Sorry, slow internet ;-)

@bwklein
Copy link

bwklein commented Aug 1, 2021

Please make new tagged version with this fix. @tdewolff see the comments in the issue linked above for the Hugo project.

@tdewolff
Copy link
Owner

tdewolff commented Aug 2, 2021

Done!

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

3 participants