Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
TODO
Description
changed
action triggerschanged
action trigger to base component, and automatically trigger on any value changeReview Notes
If testing debug_data_items_actions_2, should note before actions triggering every value click (not just different), and the template becoming broken if the same value is clicked multiple times in a row. After events only trigger if value clicked different to current value.
It might also be useful to pick one or two components from those changed in this PR and just check the
changed
action triggers as expected - a few good examples are in example_changed_action, possibly some other sheets too that I'm less aware ofAuthor Notes
This change shouldn't cause authoring issues, although just to be aware that previously setting the same value on a component would trigger
changed
actions whereas now it doesn't (although assuming actions are designed to behave the same on each trigger then I can't imagine cases where this would be undesirable)The one possible minor exception is the
plh_parent_point_box
which manually triggeredclick
actions beforechange
. Now the default behaviour is to triggerchange
beforeclick
, so if any authoring is order-dependent it may cause issue.As an added benefit, now all components that are capable of setting values will trigger a
changed
action when the value is changed - previously this had to be included by developers on a per-component basisDev Notes
I've removed all manual calls to trigger
changed
action from components to call from the base component instead. I've manually checked all updated components to make sure they includeextends TemplateBaseComponent
and so inherit the changeGit Issues
Closes #
Screenshots/Videos
If useful, provide screenshot or capture to highlight main changes