-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
关于checkbox 原生值的bug? #4690
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
Comments
用v-for渲染有状态的dom元素(input等),需要加key属性才能保证状态正确。
|
@fnlctrl 感谢您的回复,但是也许是我没有描述清楚,我按照您说的加上key,还是一样的结果,还有另一个可以证明我所说的就是, 在 Mac 下的chrome 55.0.2883.95 中,无论加上key与否,都可以正常的设置。 |
@fnlctrl 在3秒之前先点击第一个,让它变成选中状态 |
继续测试了一下 的确有问题 The last clicked |
@fnlctrl This is not a bug actually. It happens because the checkbox is still focused we don't update it on purpose. At least it makes sense for text inputs, we may want to reconsider for other inputs |
This has been fixed via #4639 |
Uh oh!
There was an error while loading. Please reload this page.
Hi.
我遇到一个很奇怪的问题,关于checkbox 的。
首先,我在控制台输入
T[0].active=true
, 第一个checkbox正常选中,但是,当我刷新浏览器之后,手动把第一个checkbox选中,然后输入T[0].active=false
,这时,第一个checkbox将不会取消选中,而第二个还是可以通过控制台正常设置(true/false)。尝试了2.1.0和2.1.8 都是一样的结果,chrome版本是 54.0.2824.2
The text was updated successfully, but these errors were encountered: