Skip to content

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

Closed
@sandanat

Description

@sandanat

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not workingvue2-portable

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions