Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with :filter #498

Open
2 of 9 tasks
ruralcoder opened this issue Oct 11, 2021 · 1 comment
Open
2 of 9 tasks

Example with :filter #498

ruralcoder opened this issue Oct 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ruralcoder
Copy link

ruralcoder commented Oct 11, 2021

I'm submitting a ...

  • bug report
  • feature request
  • support request

What is the current behavior?

<vue-simple-suggest
v-model="chosen"
display-attribute="name"
value-attribute="id"
:filter-by-query="true"
:filter="customFilter"
:list="getSuggestionList"
:debounce=10
autofocus

I have a method called customFilter but it is never called. I could not find an example of using :filter

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

How are you importing Vue-simple-suggest?

  • ESNext (original code, single-file .vue component, css included) (import VueSimpleSuggest from 'vue-simple-suggest/lib')
  • ES6 (import VueSimpleSuggest from 'vue-simple-suggest')
  • ES7 and above (import VueSimpleSuggest from 'vue-simple-suggest/dist/es7')
  • Bundled version (import VueSimpleSuggest from 'vue-simple-suggest')
  • CommonJS (const VueSimpleSuggest = require('vue-simple-suggest'))
  • UMD Component (<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>)

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Vue.js Version: 2.5.0
  • Vue-simple-suggest version: 1.11.1
  • Browser: [all | Chrome 94.0.4606.81 | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
@ruralcoder
Copy link
Author

Issue of not being called was bad JSON which did not show up anywhere as warning/error.

A good example with fuzzy matching would still be nice!

@kaskar2008 kaskar2008 added the enhancement New feature or request label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants