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

能否增加props属性以控制scroll #264

Open
sujingclg opened this issue Mar 23, 2022 · 0 comments
Open

能否增加props属性以控制scroll #264

sujingclg opened this issue Mar 23, 2022 · 0 comments

Comments

@sujingclg
Copy link

如下代码,当展开下拉菜单时将导致自动滚动到顶部,原因是调用scrollIntoParentView时,下拉菜单尚未完成渲染,导致自动滚动到顶部。希望在props中增加对scroll的控制。

const Cascader: FC<CascaderProps> = (props) => {
  const rolePropOptions = useModel('dubbing', ({ rolePropOptions }) => rolePropOptions);

  return <AntdCascader options={rolePropOptions} {...props} />;
};

export default Cascader;
@sujingclg sujingclg changed the title 能否增加对scroll的控制props属性 能否增加props属性以控制scroll Mar 23, 2022
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