Skip to content

Commit d7060ea

Browse files
committed
refactor(multiple): underscore onFocus methods for internal usage only
1 parent 2724a15 commit d7060ea

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/aria/listbox/listbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import {ComboboxPopup} from '../combobox';
5858
'[attr.aria-activedescendant]': '_pattern.activeDescendant()',
5959
'(keydown)': '_pattern.onKeydown($event)',
6060
'(pointerdown)': '_pattern.onPointerdown($event)',
61-
'(focusin)': 'onFocus()',
61+
'(focusin)': '_onFocus()',
6262
},
6363
hostDirectives: [ComboboxPopup],
6464
})
@@ -194,7 +194,7 @@ export class Listbox<V> {
194194
});
195195
}
196196

197-
onFocus() {
197+
_onFocus() {
198198
this._hasFocused.set(true);
199199
}
200200

src/aria/tabs/tabs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class Tabs {
146146
'[attr.aria-activedescendant]': '_pattern.activeDescendant()',
147147
'(keydown)': '_pattern.onKeydown($event)',
148148
'(pointerdown)': '_pattern.onPointerdown($event)',
149-
'(focusin)': 'onFocus()',
149+
'(focusin)': '_onFocus()',
150150
},
151151
})
152152
export class TabList implements OnInit, OnDestroy {
@@ -235,7 +235,7 @@ export class TabList implements OnInit, OnDestroy {
235235
});
236236
}
237237

238-
onFocus() {
238+
_onFocus() {
239239
this._hasFocused.set(true);
240240
}
241241

src/aria/toolbar/toolbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function sortDirectives(a: HasElement, b: HasElement) {
7272
'(keydown)': '_pattern.onKeydown($event)',
7373
'(click)': '_pattern.onClick($event)',
7474
'(pointerdown)': '_pattern.onPointerdown($event)',
75-
'(focusin)': 'onFocus()',
75+
'(focusin)': '_onFocus()',
7676
},
7777
})
7878
export class Toolbar<V> {
@@ -137,7 +137,7 @@ export class Toolbar<V> {
137137
});
138138
}
139139

140-
onFocus() {
140+
_onFocus() {
141141
this._hasBeenFocused.set(true);
142142
}
143143

src/aria/tree/tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function sortDirectives(a: HasElement, b: HasElement) {
9393
'[tabindex]': '_pattern.tabIndex()',
9494
'(keydown)': '_pattern.onKeydown($event)',
9595
'(pointerdown)': '_pattern.onPointerdown($event)',
96-
'(focusin)': 'onFocus()',
96+
'(focusin)': '_onFocus()',
9797
},
9898
hostDirectives: [ComboboxPopup],
9999
})
@@ -220,7 +220,7 @@ export class Tree<V> {
220220
});
221221
}
222222

223-
onFocus() {
223+
_onFocus() {
224224
this._hasFocused.set(true);
225225
}
226226

0 commit comments

Comments
 (0)