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

opconfirm组件 找不到父节点发生偏移[组件名称] 描述问题的标题 #2983

Closed
Smyile opened this issue Jul 9, 2024 · 3 comments
Labels
📒 documentation Improvements or additions to documentation to be published fixed, not be published

Comments

@Smyile
Copy link

Smyile commented Jul 9, 2024

tdesign-react 版本

1.2.6

重现链接

No response

重现步骤

<Popconfirm
visible={showConfirm[row.vsClass]}
content={内容}
onCancel={() => {
setDisableMapSelect(false);
setMapSelectValue(old => ({ ...old, [row.vsClass]: undefined }));
setShowConfirm(old => ({ ...old, [row.vsClass]: false }));
}}
onConfirm={() => {
console.log('hello')
}}
>
//封装组件嵌套
<Select
value={mapSelectValue[row.vsClass]}
disabled={disableMapSelect}
options={MERGED_TYPE_LIST.map(e => ({ label: e.label, value: e.name }))}
onChange={value => {
console.log('hello')
}}
/>


企业微信截图_270f150c-c7d5-479b-91d1-f51bfad2190c

期望结果

希望位置不发生偏移,功能正常。

实际结果

位置偏移,删除按钮无法点击

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Jul 9, 2024

👋 @Smyile,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Smyile
Copy link
Author

Smyile commented Jul 9, 2024 via email

@HaixingOoO
Copy link
Collaborator

你可以暂时使用Fragment来解决这个问题,主要是嵌套的popup查找ref的问题

<Popconfirm>
      <>
         <Select />
      </>
</Popconfirm>

@uyarn uyarn added the 📒 documentation Improvements or additions to documentation label Jul 10, 2024
@uyarn uyarn added the to be published fixed, not be published label Jul 11, 2024
@uyarn uyarn closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 documentation Improvements or additions to documentation to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants