haltu / muuri

Infinite responsive, sortable, filterable and draggable layouts
https://muuri.dev
MIT License
10.77k stars 644 forks source link

Not working with @angular/animations #484

Open natixco opened 3 years ago

natixco commented 3 years ago

When using @angular/animations module Muuri breaks at grid initialization.

Repro: https://github.com/natixco/muuri-ng11-electron-test

  1. Run with npm start
  2. Click on any of the grid links
  3. Click on the other grid link on the new page
  4. Muuri breaks ERROR Error: You can only create one Muuri Item per element! It stops working even if I destroy the grid, before the component gets destroyed.

If you comment out the following everything works fine, except of course the animations.

I also made a repro without Electron, it strangely works,