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

When multiple boxes are selected, you will find that "moveable-control-box" will create multiple boxes #1106

Open
allenxie888 opened this issue Apr 1, 2024 · 1 comment

Comments

@allenxie888
Copy link

Environments

Description

When multiple boxes are selected, you will find that "moveable-control-box" will create multiple boxes. (As shown below)
WX20240401-164641

This problem will occur in my test version 0.47.0 or above。

@SidIcarus
Copy link

If you want to handle removing it, you can do so in the changeTargets handler

let controlBox = undefined

function changeTargets(e) {
  if (controlBox !== e.currentTarget.getControlBoxElement()) {
    controlBox?.remove()
    controlBox = e.currentTarget.getControlBoxElement()
  }
}

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

No branches or pull requests

2 participants