tiberiuzuld/angular-gridster2

emptyCellClickCallback firing whenever a gridItem's @Output emits

BenRacicot opened this issue · 0 comments

Hello, I have been debugging for a few hours now and it seems that whenever a component within a gridItem emits an output the emptyCellClickCallback fires.

<gridster [options]="options">
  <gridster-item *ngFor="let item of gridItems" [item]="item">
    <app-widget-loader
      [widget]="item"
      [resizeEvent]="resizeEvent"
      (removeWidgett)="removeSomething($event)"> <-- triggers emptyCellClickCallback
    </app-widget-loader>
  </gridster-item>
</gridster>

I've switched to (mouseup) events to avoid the click event being recognized on the elements behind the cell for now.
Maybe there's something we can do to help other avoid this.