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]: The initialization is a collapsed combo, and the first time you drag it, it will flash directly to the upper left corner. #6723

Open
3 of 10 tasks
huawei668 opened this issue Jan 13, 2025 · 2 comments
Labels
bug element Issue about elements

Comments

@huawei668
Copy link

huawei668 commented Jan 13, 2025

Describe the bug / 问题描述

第一次拖拽折叠的combo,combo突闪到最左上角。

Reproduction link / 复现链接

https://stackblitz.com/edit/64ivwjby-quvp7nqt?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

每次初始化页面的第一次拖拽demo中的显示为3的combo

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@huawei668 huawei668 added the status: waiting for maintainer These issues have not yet been reviewed by a maintainer label Jan 13, 2025
Copy link

在现有的 GitHub 问题中,我找到了一些与 combo 相关的问题,但没有找到与您描述的“拖拽时闪跳到最左上角”完全匹配的问题。这可能是一个新的问题。

为了帮助您解决此问题,您可以尝试以下步骤:

  1. 确保您使用的是最新版本的 G6。
  2. 检查是否有任何自定义的拖拽事件处理程序可能导致此行为。
  3. 在初始化 combo 时,确保其位置和状态被正确设置。

如果这些步骤没有解决问题,您可以考虑在 antvis/G6 的 GitHub 仓库中创建一个新的 issue,提供详细的复现步骤和代码示例,以便开发团队能够更好地协助您。

如果您需要,我可以帮助您创建一个新的 issue。请告诉我您的决定。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@github-actions github-actions bot changed the title [Bug]: 初始化就是折叠的combo,第一次拖拽会直接闪跳到最左上角。 [Bug]: The initialization is a collapsed combo, and the first time you drag it, it will flash directly to the upper left corner. Jan 13, 2025
@yvonneyx yvonneyx added bug element Issue about elements and removed status: waiting for maintainer These issues have not yet been reviewed by a maintainer labels Jan 13, 2025
@waileong-leong
Copy link

除此之外 如果使用 behaviors: ['collapse-expand'], 如果双击展开combo 起中的node position 也会重叠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug element Issue about elements
Projects
None yet
Development

No branches or pull requests

3 participants