Skip to content

Commit

Permalink
chore(rating, segmented-control): improve event handler types (#11595)
Browse files Browse the repository at this point in the history
**Related Issue:** N/A

## Summary

✨⌨️✨
  • Loading branch information
jcfranco authored Feb 21, 2025
1 parent 6a37dd1 commit 7122f89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class Rating
target.focus();
}

private handleLabelClick(event: Event) {
private handleLabelClick(event: MouseEvent) {
//preventing pointerdown event will suppress any compatibility mouse events except for click event.
event.preventDefault();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class SegmentedControl
}
}

private handleSelected(event: Event): void {
private handleSelected(event: CustomEvent<void>): void {
event.preventDefault();
const el = event.target as SegmentedControlItem["el"];
if (el.checked) {
Expand Down

0 comments on commit 7122f89

Please sign in to comment.