klaftertief / elm-search

elm-search - an API search engine for all published Elm packages
http://klaftertief.github.io/elm-search/
99 stars 11 forks source link

Accept input straight away, not after loading #9

Open ghost opened 8 years ago

ghost commented 8 years ago

Sometimes I come to the site knowing exactly what search I want to type but the input field doesn't accept input until the packages have loaded. It's not a big deal to wait, just a little thing.

klaftertief commented 8 years ago

This is because the search used to be a live search and the disabled input prevented searches with an empty index. Disabling the submit button is good enough now. Will publish a new version soon. Thanks for the input.

klaftertief commented 8 years ago

You can now type into the search field and it will be focused on page load. Though the browser will probably not show what you are typing as the parsing go the index is blocking. Will think about making it async so that it won't block.

ghost commented 8 years ago

So good.