Skip to content

Conversation

simula-r
Copy link
Contributor

@simula-r simula-r commented Sep 4, 2025

Summary

Fix pointer events on SelectionToolbox to prevent unintended clicks on parent container by setting pointer-events: none on parent and pointer-events: auto on child Panel.

Review Focus

Fixes #5340

Screenshots (if applicable)

image

┆Issue is synchronized with this Notion page by Unito

@simula-r simula-r requested a review from a team as a code owner September 4, 2025 22:44
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 4, 2025
Copy link

github-actions bot commented Sep 4, 2025

🎭 Playwright Test Results

All tests passed across all browsers!

⏰ Completed at: 09/05/2025, 12:12:08 AM UTC

📊 Test Reports by Browser


🎉 Your tests are passing across all browsers!

@DrJKL
Copy link
Contributor

DrJKL commented Sep 4, 2025

You can still click the buttons though, right?

DrJKL
DrJKL previously approved these changes Sep 4, 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.

Assuming this was tested manually and the Playwright tests cover it otherwise 👍🏻

@simula-r
Copy link
Contributor Author

simula-r commented Sep 4, 2025

Looks like playwright is failing due to an item within the toolbox, color picker. Checking out main, it is broken there as well. Not sure how its in main if playwright caught it here. Undoing my changes still shows it broken... I have a fix but not sure if I should roll it into this PR to appease playwright. Edit: patching now to pass tests. Will improve in a follow up.

@simula-r simula-r added the New Browser Test Expectations New browser test screenshot should be set by github action label Sep 5, 2025
@github-actions github-actions bot requested a review from a team as a code owner September 5, 2025 01:25
@simula-r simula-r force-pushed the fix/toolbox-node-detection branch from b1b404e to 2cb5e63 Compare September 5, 2025 20:58
@simula-r simula-r added the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Sep 5, 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.

Went through the test logic with @simula-r , some of the fixture behavior doesn't match the comments' declared intent. Should be looked at later.

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.

Context on misleading test snapshot filename:

It clicks both text encode nodes

And the test implies that it's going to select the KSampler when in reality the select deselects the KSampler

Checking for the selection box's appearance and disappearance could catch a real issue

nit: A TODO or comment or change filename would be good

@christian-byrne christian-byrne merged commit 0bc53eb into main Sep 6, 2025
2 checks passed
@christian-byrne christian-byrne deleted the fix/toolbox-node-detection branch September 6, 2025 01:34
github-actions bot pushed a commit that referenced this pull request Sep 6, 2025
* refactor: dont need will change on animations

* fix: by disabling parent pointer events and forcing on child element

* fix: color picker watch with immediate option

* Update test expectations [skip ci]

---------

Co-authored-by: Jake Schroeder <[email protected]>
Co-authored-by: github-actions <[email protected]>
@comfy-pr-bot
Copy link
Member

@simula-r Successfully backported to #5375

christian-byrne pushed a commit that referenced this pull request Sep 6, 2025
* refactor: dont need will change on animations

* fix: by disabling parent pointer events and forcing on child element

* fix: color picker watch with immediate option

* Update test expectations [skip ci]

---------

Co-authored-by: Simula_r <[email protected]>
Co-authored-by: Jake Schroeder <[email protected]>
Co-authored-by: github-actions <[email protected]>
This was referenced Sep 7, 2025
snomiao pushed a commit that referenced this pull request Sep 12, 2025
* refactor: dont need will change on animations

* fix: by disabling parent pointer events and forcing on child element

* fix: color picker watch with immediate option

* Update test expectations [skip ci]

---------

Co-authored-by: Jake Schroeder <[email protected]>
Co-authored-by: github-actions <[email protected]>
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 New Browser Test Expectations New browser test screenshot should be set by github action size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants