You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autocomplete always sets label under v-model property instead of value. Defining sourceFormat prop does not help. Expected behaviour is to set value when desired label is chosen. Moreover not matched in-the-middle results are also mapped to v-model and it can leads to unpredictable results. It is not a blocker and can be easily fixed using @selected event, but its just not expected while an array of objects is provided and value is defined excplicite.
Steps To Reproduce:
Just test it.
The text was updated successfully, but these errors were encountered:
Yes, Autocomplete is essentially a Textfield, so its model binding label.
If your label and value are the same, you can set the source prop to be a string array ([ 'value1', 'value2' ])
If your label and value are different, you can set the source prop to be a object array ([{ label: 'choice1', value: 'value1' }, ...]), then use @selected event for specific operations
Development Relevant Information:
Description:
Autocomplete always sets label under v-model property instead of value. Defining sourceFormat prop does not help. Expected behaviour is to set value when desired label is chosen. Moreover not matched in-the-middle results are also mapped to v-model and it can leads to unpredictable results. It is not a blocker and can be easily fixed using @selected event, but its just not expected while an array of objects is provided and value is defined excplicite.
Steps To Reproduce:
Just test it.
The text was updated successfully, but these errors were encountered: