If all rows is display, my code drag & drop works without issues but if my pipeFilter
hide deleted element my drag & drop does not work (reality work but not display). If I use my toggle 2 time, my display is right.
My template:
<table mat-table #table [dataSource]="dataSource | periodicElementFilter:periodicElementFilter" class="mat-elevation-z8"
cdkDropList
[cdkDropListData]="dataSource"
(cdkDropListDropped)="dropTable($event)">
....
</table>
If you want reproduce the problem, you can find a Demo online HERE. You drag & drop with toggle to ON => Succes and you drag & drop with toggle to OFF => KO
Note: in my sample Lithium
is deleted.