The empty string `""` is falsey, so emptying the box does not remove the filter. This probably should be `if (filterRegExp || filterRegExp === "")`.