Skip to content

Commit

Permalink
Clear card cells on inactive, see #172
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 6, 2023
1 parent 92a09fd commit 6e8d554
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/median/view/CardNodeContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ export default class CardNodeContainer extends Node {

this.cardNodeCellsChangedEmitter.emit();
}
else if ( !isActive ) {
const index = this.cardNodeCells.indexOf( cardNode );
this.cardNodeCells.splice( index, 1 );
this.cardNodeCellsChangedEmitter.emit();
}
} );

return cardNode;
Expand Down

0 comments on commit 6e8d554

Please sign in to comment.