Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(slider): Deregister correct handlers on destroy (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro authored Oct 16, 2017
1 parent b77895b commit 928d6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-slider/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export default class MDCSliderFoundation extends MDCFoundation {

destroy() {
this.adapter_.deregisterInteractionHandler('mousedown', this.mousedownHandler_);
this.adapter_.deregisterInteractionHandler('pointerdown', this.mousedownHandler_);
this.adapter_.deregisterInteractionHandler('touchstart', this.mousedownHandler_);
this.adapter_.deregisterInteractionHandler('pointerdown', this.pointerdownHandler_);
this.adapter_.deregisterInteractionHandler('touchstart', this.touchstartHandler_);
this.adapter_.deregisterInteractionHandler('keydown', this.keydownHandler_);
this.adapter_.deregisterInteractionHandler('focus', this.focusHandler_);
this.adapter_.deregisterInteractionHandler('blur', this.blurHandler_);
Expand Down

0 comments on commit 928d6b4

Please sign in to comment.