I am setting up typeahead like so:
$this.typeahead({
prefetch: $this.data('url-prefetch'),
templates: {
empty: 'No matching files found'
}
})
The prefetch is working fine but the empty template is not displayed when there are no matches.