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

Commit

Permalink
fix(slider): Prevent default behavior of keyboard events associated w…
Browse files Browse the repository at this point in the history
…ith the slider.
  • Loading branch information
bardosmisi authored and ffriedl89 committed Apr 17, 2020
1 parent c54a5a8 commit 9508a72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/barista-components/slider/src/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ export class DtSlider implements AfterViewInit, OnDestroy, OnInit {
filter(keyboardEvent => KEY_CODES_ARRAY.includes(keyboardEvent.keyCode)),
map(keyboardEvent => {
keyboardEvent.stopPropagation(); // global angular keydown would trigger CD.
keyboardEvent.preventDefault();
const valueAddition = getKeyCodeValue(
this._max,
this.step,
Expand Down

0 comments on commit 9508a72

Please sign in to comment.