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

[Bug Report] Radio button group fails using vue 2.5.0 #7477

Closed
KKRainbow opened this issue Oct 13, 2017 · 4 comments
Closed

[Bug Report] Radio button group fails using vue 2.5.0 #7477

KKRainbow opened this issue Oct 13, 2017 · 4 comments

Comments

@KKRainbow
Copy link

Element UI version

1.4.6

OS/Browsers version

Arch Linux/ Chromium 61.0.3163.100

Vue version

2.5.0

Reproduction Link

https://jsfiddle.net/sunsijie/pgn7gyu9/#&togetherjs=smS20MqksL

Steps to reproduce

just click it

What is Expected?

only one should be highlighted

What is actually happening?

every item clicked is highlighted

@KagamiChan
Copy link

KagamiChan commented Oct 13, 2017

Same here.

the cause is that the input element's input event cannot be handled by v-model in 2.5.0, so the parent radio group will never $emit

A thing to note:
If you import redio button directly from source (with webpack), that said, use import ElRadioButton from 'element-ui/packages/radio-button' and use it in your code, the component will work again.
So this bug seems to be a regression on vue's side

seems similar cause for #7474

@KagamiChan
Copy link

KagamiChan commented Oct 13, 2017

posted an issue in vue vuejs/vue#6803

it is to be fixed in vue's next patch version

@Leopoldthecoder
Copy link
Contributor

@KagamiChan Thanks for boiling it down.

@Leopoldthecoder
Copy link
Contributor

Upgrading Vue to 2.5.2 fixes this: https://jsfiddle.net/pgn7gyu9/1/

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

3 participants