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

Autocomplete crashes when "field" property is a function #858

Closed
sandanat opened this issue Jan 13, 2021 · 0 comments
Closed

Autocomplete crashes when "field" property is a function #858

sandanat opened this issue Jan 13, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2-portable
Milestone

Comments

@sandanat
Copy link

Documentation says that field property of an autocomplete can be used as a function. Some errors occur in that case:

Error 1

  1. Open repo
  2. Open console
  3. Observe error
[Vue warn]: Invalid prop: type check failed for prop "field". Expected String with value "function (item) { return item.name + ' ' + item.code; }", got Function 
found in
---> <AutoComplete> at /node_modules/primevue/autocomplete/AutoComplete.vue

Error 2

  1. Open repo
  2. Start typing in an input
  3. Value of the input becomes undefined undefined
@cagataycivici cagataycivici self-assigned this Jan 20, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 20, 2021
@cagataycivici cagataycivici added this to the 3.2.0-rc.1 milestone Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2-portable
Projects
None yet
Development

No branches or pull requests

2 participants