Skip to content

Conversation

@willeastcott
Copy link
Contributor

Do not propagate click events on input elements.

Fixes #91

@willeastcott willeastcott requested a review from Copilot October 22, 2025 19:57
@willeastcott willeastcott self-assigned this Oct 22, 2025
@willeastcott willeastcott added the bug Something isn't working label Oct 22, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where left-clicking on input elements within graph nodes was not working properly for editing. The solution prevents click events on input elements from propagating to the parent node, which was intercepting these events and triggering node selection instead of allowing input interaction.

Key Changes:

  • Added a new private method _preventNodeSelectionOnInput that stops event propagation on input elements
  • Integrated this method into the input creation flow to apply the fix to all node inputs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@slimbuck slimbuck left a comment

Choose a reason for hiding this comment

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

Any idea what caused this to break?

@willeastcott
Copy link
Contributor Author

I have no freaking idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to edit state input fields in Anim State Graph

3 participants