Skip to content

Fix OnChange event with post nil if the note is the same#1317

Merged
joachimmarder merged 1 commit intoJAM-Software:masterfrom
livius2:fix_ochange_event_nil_node
Sep 2, 2025
Merged

Fix OnChange event with post nil if the note is the same#1317
joachimmarder merged 1 commit intoJAM-Software:masterfrom
livius2:fix_ochange_event_nil_node

Conversation

@livius2
Copy link
Contributor

@livius2 livius2 commented Sep 2, 2025

I’m submitting a fix for the OnChange event, which incorrectly set the node to nil when clicking on an already selected node. This behavior is incorrect. The event should always provide the node being switched to; otherwise, nil would mean that no node is selected at all. Moreover, this worked differently in earlier versions of VT, where the parameter was never nil.

I’m submitting a fix for the OnChange event, which incorrectly set the node to nil when clicking on an already selected node.
This behavior is incorrect. The event should always provide the node being switched to; otherwise, nil would mean that no node is selected at all. Moreover, this worked differently in earlier versions of VT, where the parameter was never nil.
Copy link
Contributor

@joachimmarder joachimmarder left a comment

Choose a reason for hiding this comment

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

Seems to make sense,

@joachimmarder joachimmarder merged commit 3f18a3f into JAM-Software:master Sep 2, 2025
@joachimmarder joachimmarder added this to the V8.2 milestone Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants