We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
^2.64.0
select 在使用getPopupContainer 之后,点击空白处不能调用 onBlur , 只能通过再次点击select 隐藏下拉列表
点击空白处可以收起下拉,或者有个状态控制下拉展开收起
No response
- OS:macos - browser:google
The text was updated successfully, but these errors were encountered:
没有办法复现你的问题
这段代码直接粘贴到官网上,无论 getPopupContainer 使用哪一行,行为都是正常的。
import React, { useRef } from 'react'; import { Select } from '@douyinfe/semi-ui'; () => { const divRef = useRef(); return ( <div ref={divRef} style={{position:'relative'}}> <div id='id' style={{position: 'relative'}}></div> <Select clickToHide showClear // getPopupContainer={() => document.getElementById('id')} getPopupContainer={() => divRef.current || document.body} style={{ width: '180px' }} placeholder="try abc" onBlur={() => Toast.info('on blur')} > <Select.Option value="abc">ABC</Select.Option> <Select.Option value="ulikecam">HOTSOON</Select.Option> <Select.Option value="jianying">PIPIXIA</Select.Option> <Select.Option value="xigua">XIGUA</Select.Option> </Select> </div> ); };
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Which Component
Select
Semi Version
^2.64.0
Current Behavior
select 在使用getPopupContainer 之后,点击空白处不能调用 onBlur , 只能通过再次点击select 隐藏下拉列表
Expected Behavior
点击空白处可以收起下拉,或者有个状态控制下拉展开收起
Steps To Reproduce
No response
ReproducibleCode
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: