Fixed fold-up interaction when connection is selected.
When a need was folded down because a connection was selected,
clicking the up-arrow would cause unexpected behaviour.
@@ -88,6 +88,10 @@ function genComponentConf() {
const needImpliedInRoute = connUriInRoute && selectNeedByConnectionUri(state, connUriInRoute);
const needUriImpliedInRoute = needImpliedInRoute && needImpliedInRoute.get("uri");
+ if(needUriImpliedInRoute) {
+ this.open[needUriImpliedInRoute] = true;
+ }
+
let sortedNeeds = sortByDate(relevantOwnNeeds);
return {
@@ -103,8 +107,10 @@ function genComponentConf() {
}
closeConnections(ownNeedUri) {
+ if(!this.isOpenByConnection(ownNeedUri)) {
this.open[ownNeedUri] = false;
}
+ }
isOpen(ownNeedUri) {
return this.isOpenByConnection(ownNeedUri) || !!this.open[ownNeedUri];
