Skip to content

Commit 71d3d25

Browse files
authored
Change event handler methods to readonly
1 parent 18b93e7 commit 71d3d25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Umbraco.Web.UI.Client/src/apps/app/outline-style.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export class UmbOutlineStyleController extends UmbControllerBase {
1111
host.addEventListener('keydown', this.#onKeyDown as EventListener, { capture: true });
1212
}
1313

14-
#onPointerDown = () => {
14+
readonly #onPointerDown = () => {
1515
if (!this.#hideFocusOutline) {
1616
document.body.style.setProperty('--uui-show-focus-outline', '0');
1717
this.#hideFocusOutline = true;
1818
}
1919
};
20-
#onKeyDown = (e: KeyboardEvent) => {
20+
readonly #onKeyDown = (e: KeyboardEvent) => {
2121
// If tab or shift tab is pressed, we want to show the focus outline, but only if the last interaction was not a pointer event.
2222
if (e.key !== 'Tab') return;
2323

0 commit comments

Comments
 (0)