Skip to content

Commit

Permalink
fix(picker): stop picker once it is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Nov 27, 2016
1 parent 58189d2 commit ecb8bee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/picker/picker-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export class PickerColumnCmp {

ngOnDestroy() {
this.events.unlistenAll();
if (this.rafId) {
cancelRaf(this.rafId);
this.rafId = null;
}
}

pointerStart(ev: UIEvent): boolean {
Expand Down

0 comments on commit ecb8bee

Please sign in to comment.