Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(fabSpeekDial): remove keyboard handlers on scope destroy
Browse files Browse the repository at this point in the history
Closes #4681.
  • Loading branch information
hannahhoward authored and ThomasBurleson committed Sep 21, 2015
1 parent 84b04ca commit 3516a85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/fabSpeedDial/fabController.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
angular.forEach(eventTypes, function(eventType) {
$element.off(eventType, parseEvents);
});
// remove any attached keyboard handlers in case element is removed while
// speed dial is open
disableKeyboard();
});
}

Expand Down Expand Up @@ -323,4 +326,4 @@
return $element.find('md-fab-actions');
}
}
})();
})();

0 comments on commit 3516a85

Please sign in to comment.