Skip to content

Commit

Permalink
Merge pull request #16325 from primefaces/issue-16324
Browse files Browse the repository at this point in the history
Fixed #16324 - Accessibility: Slider -> Keyboardtrap
  • Loading branch information
mehmetcetin01140 authored Sep 10, 2024
2 parents 58925a5 + b0d775d commit af7838b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ export class Slider implements OnDestroy, ControlValueAccessor {
if (this.animate) {
DomHandler.addClass(this.el.nativeElement.children[0], 'p-slider-animate');
}

event.preventDefault();
}

onBarClick(event: Event) {
Expand Down Expand Up @@ -406,9 +404,9 @@ export class Slider implements OnDestroy, ControlValueAccessor {
this.updateValue(this.max, event);
event.preventDefault();
break;

case 'Tab':
this.onDragEnd(event);
event.preventDefault();
break;

default:
Expand Down

0 comments on commit af7838b

Please sign in to comment.