Is this going to produce a bug when changing the value of the search input?