Source dropdown not appearing when "Listen to" set as nested VM property
For Listeners, when the “Target” is set for an artboard/component containing nested components, and the “Listen To” value is set to any nested VM property, the “Source” dropdown does not appear below it (as it should).
I have found that the only way to make the “Source” dropdown appear is to click on another element or part of in the editor or simply press Escape (such that the sidebar no longer shows the Listener’s properties) and then click again on that specific listener, and now the “Listen To” and the “Source” dropdowns will be visible.
It seems like the sidebar doesn’t immediately update the visibility of the “Source” dropdown upon changing the “Listen To” dropdown selection. This means that we end up seeing the following unwanted situations in the sidebar:
- “Listen To” set to a nested VM property but no “Source” dropdown shown below it
- “Listen To” set to a VM reference property with a “Source” dropdown shown below it
I have seen this problem in the Rive Web Editor and the Rive Editor for Windows (Version 0.8.5275 and earlier versions).
Below are some screenshots of a simple setup with a NestedVM, a ParentVM with some NestedVM references, and on the stage you have a parent component whose “Model” property is set to a “ParentVM” instance, and nested components whose “Model” properties are set to NestedVM instances. When creating a listener for the parent artboard/component’s state machine, you will see the above described issue.