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] Transfer用在弹出层组件中, 可拖拽 item 在被拖拽时会消失 #1149

Closed
1 task done
YyumeiZhang opened this issue Sep 26, 2022 · 0 comments · Fixed by #1247
Closed
1 task done
Assignees

Comments

@YyumeiZhang
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Transfer

Semi Version

2.19.0

Current Behavior

可拖拽 item 在被拖拽时会消失(实际上是因为弹出层Z-index比item高,item被遮挡)

Expected Behavior

可拖拽 item 在被拖拽时不被遮挡

Steps To Reproduce

https://codesandbox.io/s/fervent-pasteur-w85528?file=/src/App.jsx

ReproducibleCode

No response

Environment

- OS:
- browser:

Anything else?

涉及到组件: Transfer,TagInput
其中的拖拽使用了react-sortable-hoc,被拖拽的item会变成body的直接子节点,和portal属于同一层级,因为portal的z-index默认为1000,因此item被遮挡

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

Successfully merging a pull request may close this issue.

1 participant