-
Notifications
You must be signed in to change notification settings - Fork 17
Trigger property OnTriggered only fires once for bindable artboards placed in slots #152
Description
When a ViewModelInstanceTriggerProperty is subscribed to via OnTriggered on a bindable artboard placed in a slot of a parent RiveWidget, the callback only fires once. Subsequent user interactions with the same button do not trigger the callback again.
The same button artboard works correctly when used directly on a RiveWidget (not as a slotted bindable artboard) — triggers fire on every click as expected.
Steps to Reproduce
Create a parent RiveWidget with an artboard that has a ViewModel slot for a nested artboard
Create a bindable artboard (e.g. a button) with a trigger property (e.g. buttonClicked)
Place the bindable artboard into the parent widget's slot via SetViewModelInstance / artboard property
Subscribe to the trigger's OnTriggered event in C#
Click the button — callback fires ✅
Click the button again — callback does not fire ❌
Expected Behavior
OnTriggered should fire on every user interaction, regardless of whether the artboard is direct or slotted.
Actual Behavior
OnTriggered fires only once. Subsequent clicks are not detected.
Is there an additional step required to make trigger properties work correctly on bindable artboards placed in slots? Are we missing something in our setup, or is this a bug in how slotted artboard state machines are advanced?