File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const links = Array.from(document.querySelectorAll('div > h3 > a:first-child, td
5
5
const nextPageLink = document . querySelector ( '#pnnext' )
6
6
const prevPageLink = document . querySelector ( '#pnprev' )
7
7
const searchInput = document . querySelector ( '#lst-ib' )
8
+ const formInputs = document . querySelectorAll ( 'input, textarea' )
8
9
9
10
// Constant var
10
11
const LAST_INDEX = links . length - 1
@@ -56,8 +57,10 @@ const init = () => {
56
57
return
57
58
}
58
59
59
- searchInput . addEventListener ( 'focusin' , ( ) => activateNavigation ( false ) )
60
- searchInput . addEventListener ( 'focusout' , ( ) => activateNavigation ( true ) )
60
+ formInputs . forEach ( el => {
61
+ el . addEventListener ( 'focusin' , ( ) => activateNavigation ( false ) )
62
+ el . addEventListener ( 'focusout' , ( ) => activateNavigation ( true ) )
63
+ } )
61
64
62
65
activateNavigation ( true )
63
66
You can’t perform that action at this time.
0 commit comments