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 #93

Open
johnnychq opened this issue Dec 9, 2014 · 2 comments
Open

定位第一个出错元素bug #93

johnnychq opened this issue Dec 9, 2014 · 2 comments

Comments

@johnnychq
Copy link

如果第一个元素是hidden字段,当调用该元素的 $input.focus()方法时,并不能够定位到该出错位置。

建议采用$input[0].scrollIntoView();

@shaoshuai0102
Copy link
Member

hidden字段报错 说明你的逻辑出问题了呀 这个时候打算怎么显示呢 或者说有非法字段了

@johnnychq
Copy link
Author

自定义字段,譬如异步文件上传组件,国家地区选择组件等,等会有一个hidden input用于存值的。在校验框架中,校验的就是该hidden字段有无。

使用逻辑是正常的。不明白你说的逻辑出问题了是什么意思?

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

2 participants