Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: Firefly
-
Epic Link:
-
Team:Science User Interface
Description
We were trying to update a field in a component under a fieldgroup form, where the component is expecting to get options list changes based on another field but even though the reducer change the state, the list doesn't get updated.
When it comes to changing a value, the reducer and the render change it without problem. Seems that is only the ListInputField component with updated options that exposed this problem.
Please, contact Dean Naji for mor example on how this is failing and how we were expecting to be using it. Thanks.
Dean Naji Please see FieldGroupWithMasterDependent in ExampleDialog.js for an example how the options in a list box can be changed using the reducer function. The important part is not to specify options in render() if you want to control them in reducer function.
To see a working example in Firefly, use http://localhost:8080/firefly/firefly-dev.html -> "Example Js Dialog" -> "Third" tab.