-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[select]更新1.0.4后select的option不能绑定object? #1533
Comments
我试了一下是可以的:http://jsfiddle.net/Lq0qbjgo/ ,请提供能重现问题的 demo |
@Leopoldthecoder 应该是给他一个初始值时不能是对象的错误,我之前都是这样给初始值都不会报错,1.0.3之前都不会 |
这种情况下,如果需要给初始值的话,可能需要这样写:http://jsfiddle.net/leopoldthecuber/Lq0qbjgo/1/ 。因为按照截图里的写法, 试了一下,在 1.0.3 及之前的版本里,按照截图里的写法,输入框里是空的,这也是不对的。 |
|
提供一个能重现的 demo 吧 |
是的,还是按我上面那个 demo 的方法来处理,或者初始化为一个空字符串。我再想想我这边有没有更好的处理办法。 |
|
这个select在1.0.4版本里出现的bug太大了,1.0.3以前还是好的。 |
@yuanshengchao 请新开一个 issue 并提供 demo。 |
@lry210 可以先锁定 1.0.3,等下个版本。不过仍然不建议这样使用。 |
#1540 修复了初始值为对象时会报错的问题。 |
更新1.0.4后select的option不能绑定object?
我整个页面用到select的都报错了,这是怎么回事?
The text was updated successfully, but these errors were encountered: