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

Popover and Select #3438

Closed
plandem opened this issue Oct 14, 2016 · 3 comments
Closed

Popover and Select #3438

plandem opened this issue Oct 14, 2016 · 3 comments
Labels

Comments

@plandem
Copy link
Contributor

@plandem plandem commented Oct 14, 2016

Is it possible to prevent the changing of visibility of popover after interaction with Select?

Here is demo:
http://codepen.io/anon/pen/XjBVbp?editors=0011

@afc163
Copy link
Member

@afc163 afc163 commented Oct 14, 2016

getPopupContainer https://ant.design/components/select/#Select-props

https://codepen.io/anon/pen/NaMbVg?editors=0011

You can use getPopupContainer={triggerNode => triggerNode.parentNode} to make select dropdown menu rendering inside the Popover content.

https://github.com/ant-design/ant-design/wiki/FAQ#select-dropdown-datepicker-timepicker-popover-popconfirm-will-scroll-with-page

#3487

@plandem
Copy link
Contributor Author

@plandem plandem commented Oct 14, 2016

Works! i would add this to official examples. Thanks.

@plandem plandem closed this Oct 14, 2016
@afc163 afc163 added the FAQ label Oct 6, 2018
@orzyyyy orzyyyy mentioned this issue Dec 4, 2018
0 of 1 task complete
@guohuihuiguo
Copy link

@guohuihuiguo guohuihuiguo commented Apr 30, 2019

hello
我试着用上面的方法 getPopupContainer={(triggerNode: any) => triggerNode.parentNode} 结果

1556620903631-image
遮盖了select<Select getPopupContainer={(triggerNode: any) => triggerNode.parentNode} mode="multiple" notFoundContent={selectLoading ? <Spin size="small" /> : ``} filterOption={false} onSearch={this.totalFocusHandler.bind(this, siteCode)} style={{ width: '100%' }} > {siteCodeList.map((item: any, index: any) => <Option key={${item.sitecode}${index}} value={item.sitecode} >{item.sitecode}</Option>)} </Select>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants