vuetify-jsonschema-form icon indicating copy to clipboard operation
vuetify-jsonschema-form copied to clipboard

x-display: combobox not working with x-fromUrl

Open ibot3 opened this issue 2 years ago • 2 comments

On the docs website there is an example that shows how a combobox can be used with suggestions (examples) from HTTP. However, this doesn't seem to work. Even the example on the website behaves like a normal select from HTTP:

https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/examples/#combobox

"Anything that can be represented as a select can also be represented as a combobox to allow the user to enter extra values. "

Custom input values besides the ones from HTTP are not possible.

My Model:

...
subcategory: {
  'x-display': 'combobox',
  type: 'string',
  title: i18n.t('subcategory'),
  'x-itemKey': 'subcategory',
  'x-fromUrl': `${API_URL}/subcategory`,
},
...

ibot3 avatar Aug 17 '22 19:08 ibot3

This is fixed in the 2.18.2 release. But to be honest I think the user interaction is not very intuitive, this functionality needs more work. Right now I just fixed the regression.

albanm avatar Aug 19 '22 09:08 albanm

Thank you! With bad user interaction you mean the strange behavior when adding text after the selected item and it then overwrites the selected item with the new text when loosing focus? However, I think this issue can be closed.

ibot3 avatar Aug 19 '22 09:08 ibot3