Autocomplete does not support array of objects


Topic: Autocomplete does not support array of objects

eladhr83 asked 5 years ago

Expected behavior

Initialize autocomplete data property with array of objects like: {value:'some val',text:'some text'}.I need to get the object once a value has been selected from the autocomplete data list.

Actual behavior

Because we send an array of strings, we get only a string and not it's corresponding value(id for example like in mdb-select)


Magdalena Dembna staff premium answered 5 years ago

As for now we don’t support this feature - we will discuss it with our team, but we cannot promise anything - the whole idea with autocomplete is about getting your word completed and extracting the value with v-model. Kind regards, Magdalena


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.5.0
  • Device: pc
  • Browser: chrome
  • OS: ubuntu
  • Provided sample code: No
  • Provided link: No