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

Property '__VLS_radioBinding' does not exist on type 'ElementAttrs<InputHTMLAttributes>'.ts(2322) #1390

Closed
nakorndev opened this issue Jun 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nakorndev
Copy link

I got this error on v-model in the below HTML code. But the web page is still running as expected. Is it a bug?

<div class="form-check form-check-inline">
  <input id="roleUser" v-model="input.role" class="form-check-input" type="radio" name="role" value="user">
  <label class="form-check-label" for="roleUser">{{ $t('ROLE_USER') }}</label>
</div>
<div class="form-check form-check-inline">
  <input id="roleInstructor" v-model="input.role" class="form-check-input" type="radio" name="role" value="instructor">
  <label class="form-check-label" for="roleInstructor">{{ $t('ROLE_INSTRUCTOR') }}</label>
</div>
const input = reactive({
  firstName: '',
  lastName: '',
  email: '',
  password: '',
  role: 'user',
})
(property) __VLS_radioBinding: string
Type '{ id: string; __VLS_radioBinding: string; class: string; type: string; name: string; value: string; }' is not assignable to type 'ElementAttrs<InputHTMLAttributes>'.
  Property '__VLS_radioBinding' does not exist on type 'ElementAttrs<InputHTMLAttributes>'.ts(2322)

image

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants