Skip to content

Commit dbe9499

Browse files
committed
fixed typo
1 parent 6caef81 commit dbe9499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-gamepad-navigation/src/core/GamepadUtils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const isSelectElement = (
3232
return element?.tagName === 'SELECT';
3333
};
3434

35-
export const hidePickerOnSeLectElement = (htmlSelect: HTMLSelectElement) => {
35+
export const hidePickerOnSelectElement = (htmlSelect: HTMLSelectElement) => {
3636
htmlSelect.blur();
3737
htmlSelect.focus();
3838
htmlSelect.removeAttribute(selectOptionsVisibleAttribute);
@@ -41,7 +41,7 @@ export const hidePickerOnSeLectElement = (htmlSelect: HTMLSelectElement) => {
4141
export const handleSelectOnEnter = (htmlSelect: HTMLSelectElement) => {
4242
const openOptions = htmlSelect.hasAttribute(selectOptionsVisibleAttribute);
4343
if (openOptions) {
44-
hidePickerOnSeLectElement(htmlSelect);
44+
hidePickerOnSelectElement(htmlSelect);
4545
} else {
4646
htmlSelect.showPicker();
4747
htmlSelect.setAttribute(selectOptionsVisibleAttribute, '');
@@ -54,7 +54,7 @@ export const handleSelectOnEscape = (
5454
) => {
5555
const openOptions = htmlSelect.hasAttribute(selectOptionsVisibleAttribute);
5656
if (openOptions) {
57-
hidePickerOnSeLectElement(htmlSelect);
57+
hidePickerOnSelectElement(htmlSelect);
5858
} else {
5959
emitSyntheticKeyboardEvent(
6060
'keydown',

0 commit comments

Comments
 (0)