Wiki search error

Wiki search error
0

#1

Hello again :smile: (I’m starting to feel weird with always needig help)
So I have finished wiki search api pen
And everything worked fine and then I added some comments and it just isn’t working again … Can someone see why ?


#2

It seems to work as you intended. When I press the enter button, the results appear. However your click event listener for the search button is empty, so it does nothing in the beginning.

If you want to show search results on clicking the search button as well then either copy-paste the code you have in the anonymous function bound to the enter button or better still, create a new function that takes the event as a parameter and assign it as the callback for both enter key and the search button.