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

value attribute is missing from input[radio]-field when using vModel #231

Open
hasanen opened this issue Jun 1, 2021 · 0 comments
Open

Comments

@hasanen
Copy link

hasanen commented Jun 1, 2021

Hey

We have a problem with getting value attribute visible with radio buttons with vModel. For example following code

<input name="test" vModel={this.testing} type="radio" value="a" />

generates

<input name="test" type="radio">

But if we leave the vModel out

<input name="test" type="radio" value="a" />

we get

<input name="test" type="radio" value="a">

I tried to look on the code in here https://github.com/vuejs/jsx/blob/5368c63ec768c070cfc259a506d9de43cb930bdb/packages/babel-sugar-v-model/src/index.js#L447-L461 but I don't have enough of knowledge to spot the bug.

We're using version 1.2.3 of @vue/babel-sugar-v-model.

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

1 participant