fix: relink search button (move outside content load listener)
This commit is contained in:
		
							parent
							
								
									714b4fcfa3
								
							
						
					
					
						commit
						cdc4f1a840
					
				
					 1 changed files with 12 additions and 14 deletions
				
			
		| 
						 | 
					@ -239,7 +239,6 @@ async function run() {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  window.addEventListener('DOMContentLoaded', () => {
 | 
					 | 
				
			||||||
  const searchButton = document.getElementById("search-icon")
 | 
					  const searchButton = document.getElementById("search-icon")
 | 
				
			||||||
  searchButton.addEventListener('click', (evt) => {
 | 
					  searchButton.addEventListener('click', (evt) => {
 | 
				
			||||||
    openSearch()
 | 
					    openSearch()
 | 
				
			||||||
| 
						 | 
					@ -253,7 +252,6 @@ async function run() {
 | 
				
			||||||
  document.getElementById("search-space").addEventListener('click', (evt) => {
 | 
					  document.getElementById("search-space").addEventListener('click', (evt) => {
 | 
				
			||||||
    evt.stopPropagation()
 | 
					    evt.stopPropagation()
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
  })
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run()
 | 
					run()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue