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

Error of v-model error in pug #721

Closed
sinbino opened this issue Nov 22, 2021 · 3 comments
Closed

Error of v-model error in pug #721

sinbino opened this issue Nov 22, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@sinbino
Copy link

sinbino commented Nov 22, 2021

If a tag is followed by a colon, volar will report an wrong error about v-model.

For example, in the following code

td: input(v-model="name")

The latest version of volar reports the following error.

v-model can only be used on <input>, <textarea> and <select> elements.vue(54)

The preceding code is equivalent to the following code, which should not actually result in an error.

td
  input(v-model="name")

This problem is present in v0.28.10 or later, and does not seem to be present in v0.28.9 or earlier.

edit:
My mistake, it was a colon, not a semicolon.

@Shinigami92
Copy link
Collaborator

I think you mean colon instead of semicolon, do you?

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Nov 23, 2021
@johnsoncodehk
Copy link
Member

vikunja-bot pushed a commit to go-vikunja/frontend that referenced this issue Nov 28, 2021
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [vue-tsc](https://github.com/johnsoncodehk/volar) | devDependencies | patch | [`0.29.6` -> `0.29.7`](https://renovatebot.com/diffs/npm/vue-tsc/0.29.6/0.29.7) |

---

### Release Notes

<details>
<summary>johnsoncodehk/volar</summary>

### [`v0.29.7`](https://github.com/johnsoncodehk/volar/blob/master/CHANGELOG.md#&#8203;0297)

[Compare Source](vuejs/language-tools@v0.29.6...v0.29.7)

-   feat: support html, css custom data ([#&#8203;707](vuejs/language-tools#707))
-   feat: support extends tsconfig `vueCompilerOptions` ([#&#8203;731](vuejs/language-tools#731))
-   fix: cannot config project reference by directory path ([#&#8203;712](vuejs/language-tools#712))
-   fix: pug attrs type-check borken by nested tags ([#&#8203;721](vuejs/language-tools#721))
-   fix: import path rename result incorrect ([#&#8203;723](vuejs/language-tools#723))
-   fix: `editor.codeActionsOnSave: ["source.organizeImports"]` not working ([#&#8203;726](vuejs/language-tools#726))
-   fix: goto definition not working with some component import statement ([#&#8203;728](vuejs/language-tools#728))
-   fix: don't show volar commands in non-vue document ([#&#8203;733](vuejs/language-tools#733))
-   fix: vue-tsc not working with symlink ([#&#8203;738](vuejs/language-tools#738))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1106
Reviewed-by: dpschen <dpschen@noreply.kolaente.de>
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
@sinbino
Copy link
Author

sinbino commented Nov 30, 2021

Thank you for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants