wotamann / vuetify-form-base

Schema-based Form Generator - Vue.js 2.0 Component based on Vuetify 2.0
https://wotamann.github.io/vuetify
230 stars 63 forks source link

Combox box with object. #80

Closed andrelec1 closed 3 years ago

andrelec1 commented 3 years ago

According this: #39

i want to do something like this :

        'product.asset': {
          flex: 3,
          placeholder: 'Product Asset',
          type: 'combobox',
          items: this.formExtraData.choice.asset,
          returnObject: false,
          itemText: 'code',
          itemValue: 'id',
        },

That seem work ... but that not work like intended ...

That use the 'code' property for populating the combobox choice list => ok That use the 'id' property for populating my model => ok

But, that update my model and display the id in the combobox :/

image

image

wotamann commented 3 years ago

Thanks for your interest!

This is Vuetify Issue #5479, which is discussed here https://vuetifyjs.com/en/components/combobox/

andrelec1 commented 3 years ago

So replace 'combobox' by 'autocomplete' because vutify team is wierd as fuck and seem didn't like making consistant lib .... Thank ...