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

Vue @click shorthand gives error #2026

Open
leafleaf90 opened this issue Feb 12, 2024 · 0 comments
Open

Vue @click shorthand gives error #2026

leafleaf90 opened this issue Feb 12, 2024 · 0 comments
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@leafleaf90
Copy link

Name of the lexer
Vue

Code sample

 <button
        class="join-item btn"
        @click="currentPage = currentPage - 1"
        :disabled="currentPage <= 1"
      >
        «
      </button>

Additional context
v-on:click shorthand @click produces error, even though it is OK or even preferred ("We can use the v-on directive, which we typically shorten to the @ symbol" from Vue docs) to use the shorthand.

image
(I'm also not sure why the <= operator gives an error)

@leafleaf90 leafleaf90 added the bugfix-request A request for a bugfix to be developed. label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

No branches or pull requests

1 participant