Fixed .refresh(), unfocussing of filter.

Fixed an issue concerning the refresh method and the unfocussing of the
filter search input after filtering the options.