Commit dbe9499 1 parent 6caef81 commit dbe9499 Copy full SHA for dbe9499
File tree 1 file changed +3
-3
lines changed
packages/react-gamepad-navigation/src/core
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export const isSelectElement = (
32
32
return element ?. tagName === 'SELECT' ;
33
33
} ;
34
34
35
- export const hidePickerOnSeLectElement = ( htmlSelect : HTMLSelectElement ) => {
35
+ export const hidePickerOnSelectElement = ( htmlSelect : HTMLSelectElement ) => {
36
36
htmlSelect . blur ( ) ;
37
37
htmlSelect . focus ( ) ;
38
38
htmlSelect . removeAttribute ( selectOptionsVisibleAttribute ) ;
@@ -41,7 +41,7 @@ export const hidePickerOnSeLectElement = (htmlSelect: HTMLSelectElement) => {
41
41
export const handleSelectOnEnter = ( htmlSelect : HTMLSelectElement ) => {
42
42
const openOptions = htmlSelect . hasAttribute ( selectOptionsVisibleAttribute ) ;
43
43
if ( openOptions ) {
44
- hidePickerOnSeLectElement ( htmlSelect ) ;
44
+ hidePickerOnSelectElement ( htmlSelect ) ;
45
45
} else {
46
46
htmlSelect . showPicker ( ) ;
47
47
htmlSelect . setAttribute ( selectOptionsVisibleAttribute , '' ) ;
@@ -54,7 +54,7 @@ export const handleSelectOnEscape = (
54
54
) => {
55
55
const openOptions = htmlSelect . hasAttribute ( selectOptionsVisibleAttribute ) ;
56
56
if ( openOptions ) {
57
- hidePickerOnSeLectElement ( htmlSelect ) ;
57
+ hidePickerOnSelectElement ( htmlSelect ) ;
58
58
} else {
59
59
emitSyntheticKeyboardEvent (
60
60
'keydown' ,
You can’t perform that action at this time.
0 commit comments