remove card after leave screen
astronautfa opened this issue · comments
astronautfa commented
When the card leaves the screen it doesn't get removed
is there any way to remove or hide the element after it has left the screen?
Jakob Unnebäck commented
Yes, this can be achieved in many ways. Here is 2 examples
- Removing the data to the corresponding card on the left screen.
- Have an array state with all hidden items and then add each item that leaves the screen. Finally in the render code set
display: none
on the cards included in the list.
However, the best thing is to keep them visible if you want to use the restore card function. Because otherwise, you won't be able to do that.