afcapel / stimulus-autocomplete

Stimulus autocomplete component
MIT License
482 stars 62 forks source link

Added on focus listener #149

Open williamrolando88 opened 2 months ago

williamrolando88 commented 2 months ago

This pr is to fix issue #110. I tried the proposed solution on #121 and it didn't work, so this is a new proposal.

This new approach creates a listener for the focus event. Then it compares if the minLenght is greater than the query string to make the fetch

netlify[bot] commented 2 months ago

Deploy Preview for stimulus-autocomplete canceled.

Name Link
Latest commit 842039ea5fc0db49fa148ee3c3edcac797f49a51
Latest deploy log https://app.netlify.com/sites/stimulus-autocomplete/deploys/66d86703f06f0c00085d9f91