[BUG]: Box/Lasso select stops working and makes page freeze after adjusting previously selected range
Open
Nobody has claimed this yet.
bug
P2
size: 3
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Description
The box/lasso select function stop working after adjusting previously selected range.
Screenshots/Video
https://github.com/user-attachments/assets/0626a7ee-dfce-45e6-aa79-d9b0f1df04fc
Steps to reproduce
- Go to this page: https://plotly.com/javascript/lasso-selection/
- Plat with the example, select
Box selectorLasso select - Select a range first, and then adjust the range again
- Open the devtool and you will see infinite logs coming out and will make the page freeze.
Note
The example uses plotly v3, I replaced it with v4, the issue persists.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue on the Plotly lasso-selection example at https://plotly.com/javascript/lasso-selection/ with the browser devtools open. Select a range, adjust it, and compare the behavior in the referenced Plotly versions. Done means adjusting an existing box or lasso selection no longer produces infinite logs or freezes the page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100