Back to Blog

vue delayed search field - wait for users to stop typing before calling a function

November 26th, 2020

Hey guys, quick post here - I came across this problem when I was creating a search box in one of my projects that would trigger 0.5s after the user stops typing. It's pretty convenient and really easy to integrate.

Here's the simple Vue Integration in jsfiddle.

And here it is as a component in Nuxt.