antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[Bug]: The initialization is a collapsed combo, and the first time you drag it, it will flash directly to the upper left corner. #6723

huawei668 posted onGitHub

Describe the bug / 问题描述

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

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 / 其他

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

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

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

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

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

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

posted by petercat-assistant[bot] 3 months ago

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

posted by waileong-leong 3 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests