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

Calling getSelectedPoints in draw.update handler causes a crash #1353

Open
lochstar opened this issue Jan 29, 2025 · 0 comments
Open

Calling getSelectedPoints in draw.update handler causes a crash #1353

lochstar opened this issue Jan 29, 2025 · 0 comments

Comments

@lochstar
Copy link

I've forked the default demo sandbox here: https://codesandbox.io/p/sandbox/wp488f

Preview link here: https://mr93f6.csb.app/

All I've done is added console.log(draw.getSelectedPoints()); to the updateArea function.

Steps to reproduce:

  1. Draw a polygon
  2. Select a point
  3. Trash the point, page crashes

Note that it doesn't always crash, so keep trying. It'll happen eventually.

Screenshot of sandbox page crash

Image
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

1 participant