I am currently trying to implement an on-click search event, using Simple-Jekyll-Search on a page with SmoothState.
After following the suggestion written in this question: How do you simulate a button press in Javascript, to trigger searching in Simple-Jekyll-Search, and adding the following snippet to the library, it appears the onClick event no longer triggers a the search event after SmoothState loads a new page.
$('#yourbutton').click(function(){
render( searcher.search(store, opt.searchInput.value) );
})
Any suggestions would be appreciated.