manywho / ui-bootstrap

5 stars 3 forks source link

FLOW-2004 - Collapse historical navigation when outcomes are clicked #146

Closed dshoulders closed 4 years ago

dshoulders commented 4 years ago

First approach was adding a collapsed property into ui-core state. This led to making changes in many other places and adding another call Engine.render. It didn't seem ideal. To keep the functionality contained within the historical-navigation component I have added a document event listener which will execute when an outcome is clicked. The listener will update the local component state to collapse the navigation items.

Edit: Changed the approach to collapsing the historical nav items whenever the entries array changes.