Skip to content

Commit 2078825

Browse files
(Lookup): rename isIgnoreTabNavigation with isTabNavigationIgnored
1 parent bf62197 commit 2078825

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scripts/Lookup.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type KeyHandlerConfig = {
5555
onNavigateDown: () => void;
5656
onNavigateUp: () => void;
5757
onSelect: () => void;
58-
isIgnoreTabNavigation: (direction: 'forward' | 'backward') => boolean;
58+
isTabNavigationIgnored: (direction: 'forward' | 'backward') => boolean;
5959
onTabNavigation: (direction: 'forward' | 'backward') => void;
6060
};
6161

@@ -71,7 +71,7 @@ const createKeyHandler = (config: KeyHandlerConfig) => {
7171
onNavigateDown,
7272
onNavigateUp,
7373
onSelect,
74-
isIgnoreTabNavigation,
74+
isTabNavigationIgnored,
7575
onTabNavigation,
7676
} = config;
7777

@@ -105,7 +105,7 @@ const createKeyHandler = (config: KeyHandlerConfig) => {
105105
}
106106
break;
107107
case 9: // Tab
108-
if (!isIgnoreTabNavigation(e.shiftKey ? 'backward' : 'forward')) {
108+
if (!isTabNavigationIgnored(e.shiftKey ? 'backward' : 'forward')) {
109109
e.preventDefault();
110110
e.stopPropagation();
111111
onTabNavigation(e.shiftKey ? 'backward' : 'forward');
@@ -995,7 +995,7 @@ export const Lookup = createFC<LookupProps, { isFormElement: boolean }>(
995995
onLookupRequest_?.(searchText);
996996
}
997997
},
998-
isIgnoreTabNavigation: (direction) => {
998+
isTabNavigationIgnored: (direction) => {
999999
const optionValues = getOptionValues();
10001000
const currentIndex = focusedValue
10011001
? optionValues.indexOf(focusedValue)
@@ -1106,7 +1106,7 @@ export const Lookup = createFC<LookupProps, { isFormElement: boolean }>(
11061106
setScopeOpened(!scopeOpened);
11071107
}
11081108
},
1109-
isIgnoreTabNavigation: (direction) => {
1109+
isTabNavigationIgnored: (direction) => {
11101110
if (!scopes) {
11111111
return false;
11121112
}

0 commit comments

Comments
 (0)