Hey guys I am looking for a little help on how to get the enter key to trigger the search.
The way I have it now I am triggering the event with a button click and it works great.
When I try to put the anonymous “search” function inside a different function it does not work.
The reason I would like to do this is so that I can call the function with the button or key press events in a DRY way.
see my pens for example:
Can anyone tell me why this does not work? If so can you point me to a good resource to read that would help me solve the problem?