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 evaluator bug when expression starts with let or const #2224

Conversation

danddanddand
Copy link
Contributor

@danddanddand danddanddand commented Oct 14, 2021

Fix bug where expressions that start with let/const were not evaluating properly.

This is sample that wasn't evaluating properly:

<ul x-data="{ letters: ['a','b','c'] }">
  <template x-for="letter in letters">
    <li x-text="letter"></li>
  </template>
</ul>

Reported here #2223

@calebporzio
Copy link
Collaborator

Oh good catch - thanks!

@calebporzio calebporzio merged commit 253fd8f into alpinejs:main Oct 19, 2021
@danddanddand danddanddand deleted the fix-evaluator-starts-with-let-or-const-bug branch October 23, 2021 04:58
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.

None yet

2 participants