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

Dialog组件 页面加载时调用 某些情况下 无法弹出 #6294

Closed
192114 opened this issue Aug 8, 2023 · 4 comments
Closed

Dialog组件 页面加载时调用 某些情况下 无法弹出 #6294

192114 opened this issue Aug 8, 2023 · 4 comments
Labels

Comments

@192114
Copy link

192114 commented Aug 8, 2023

Version of antd-mobile

5.32.0

Operating system and its version

No response

Browser and its version

最新chrome内核

Sandbox to reproduce

codesandbox

What happened?

结合 @react-three/drei@react-three/fiber 一起使用

注释

  if (loading) {
    return null;
  }

或者

<Canvas camera={{ position: [0, 0, 360], fov: 20 }}>
        <Suspense fallback={null}>
          <Model />
          <OrbitControls />
          <ambientLight intensity={0.4} />
          <directionalLight color="#ffb46b" position={[0, 0, 100]} />
          <directionalLight color="#ffb46b" position={[0, 0, -100]} />
        </Suspense>
      </Canvas>

Dialog 可以正常弹出

但是两者同时存在的时候,Dialog的节点会正常添加到body节点中,但是节点停留在该过渡状态中

<div style="opacity: 0; transform: scale(0.8);">
....
</div>

想请问这种用法是否存在问题,如何能让Dialog正确弹出。

非常感谢

Relevant log output

No response

@192114 192114 added the bug label Aug 8, 2023
@1587315093
Copy link
Contributor

1587315093 commented Aug 8, 2023

链接打不开

image

@1587315093 1587315093 added question need reproduce We cannot reproduce your problem and removed bug labels Aug 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Hi, 192114.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

@192114
Copy link
Author

192114 commented Aug 8, 2023

链接打不开

image

非常抱歉 新的链接 codesandbox

@1587315093
Copy link
Contributor

这样子用吧,显示出来了 @192114
https://codesandbox.io/s/condescending-pond-shfpq9?file=/src/App.tsx:0-1059

@1587315093 1587315093 removed the need reproduce We cannot reproduce your problem label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants