Skip to content

Commit

Permalink
Marked members as readonly
Browse files Browse the repository at this point in the history
Fixes @sonarcloud warnings
  • Loading branch information
leekelleher committed Nov 25, 2024
1 parent 8d99634 commit 02a3a01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/uui-base/lib/mixins/SelectableMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
this.addEventListener('keydown', this.#onKeydown);
}

#onKeydown = (e: KeyboardEvent) => {
readonly #onKeydown = (e: KeyboardEvent) => {
const composePath = e.composedPath();
if (
(this._selectable || (this.deselectable && this.selected)) &&
Expand All @@ -93,7 +93,7 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
}
};

#onClick = (e: Event) => {
readonly #onClick = (e: Event) => {
const composePath = e.composedPath();
if (
(this._selectable || (this.deselectable && this.selected)) &&
Expand Down

0 comments on commit 02a3a01

Please sign in to comment.