Skip to content

Conversation

AustinMroz
Copy link
Collaborator

@AustinMroz AustinMroz commented Sep 6, 2025

#5079 removed the onMouseDown handler because it would overwrite prototype onMouseDown handlers added by custom nodes. This handler was accidentally re-added by #4263.

As the replacement mouse handling code added by #5079 still exists, only the removal of the onMouseDown code is required here.

EDIT: Looks like it also reverted test changes.

┆Issue is synchronized with this Notion page by Unito

@AustinMroz AustinMroz requested a review from a team as a code owner September 6, 2025 21:30
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 6, 2025
Copy link

github-actions bot commented Sep 6, 2025

🎭 Playwright Test Results

All tests passed across all browsers!

⏰ Completed at: 09/07/2025, 02:55:34 AM UTC

📊 Test Reports by Browser


🎉 Your tests are passing across all browsers!

@AustinMroz AustinMroz requested a review from a team as a code owner September 6, 2025 21:48
DrJKL
DrJKL previously approved these changes Sep 7, 2025
Copy link
Contributor

@DrJKL DrJKL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's hope this is adequately covered by the tests 🤞🏻

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Sep 7, 2025
@AustinMroz
Copy link
Collaborator Author

It's a travesty that there's now green lines in the PR, but I've added a test that is harder to overwrite than the snapshots.

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch

@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch 1.26 labels Sep 7, 2025
@christian-byrne christian-byrne merged commit db37693 into main Sep 7, 2025
28 checks passed
@christian-byrne christian-byrne deleted the austin/fix-onMousedown branch September 7, 2025 03:23
Copy link

github-actions bot commented Sep 7, 2025

@AustinMroz Backport to core/1.26 failed: Merge conflicts detected.

Please manually cherry-pick commit db37693688020efa1ff3df78fec359e234a7855f to the core/1.26 branch.

Conflicting files
  • src/lib/litegraph/src/LGraphNode.ts

@benceruleanlu benceruleanlu mentioned this pull request Sep 7, 2025
snomiao pushed a commit that referenced this pull request Sep 12, 2025
* Remove accidental onMouseDown handler

* Fix test snapshot

* Add test that onMouseDown isn't overwritten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.26 needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants