Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Remove filter based only on search #50

Open
eagleDiego opened this issue May 15, 2019 · 2 comments
Open

Remove filter based only on search #50

eagleDiego opened this issue May 15, 2019 · 2 comments

Comments

@eagleDiego
Copy link

Currently, the results array is filtered based on the data passed by the serializer function, or in the suggestion slot.

In my user case, I retrieve from the server results that are still relevant, although in the drop-down I don't show why they are relevant.

For example, for query = 'her' I may return from the API:

[
  {
    "code": "XYZ",
    "name":"triplet",
    "location":"here"
  }
]

But my serializer function only returns triplet - XYZ.

The matchedItems() function will not show this result because it doesn't pass the RegEx.

It would be useful to have a way of bypassing the regular expression and just show all results from data.

@llienard
Copy link

Hi, same use case here. Need a new release with this feature please !

@mattzollinhofer
Copy link

I merged a fix for this into my fork (https://github.com/mattzollinhofer/vue-typeahead-bootstrap) of this project that I'm actively maintaining. Set the showAllResults flag and it will disable the filtering you're describing.

You can find it on npm here: https://www.npmjs.com/package/vue-typeahead-bootstrap.

I hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants