Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-display: combobox not working with x-fromUrl #370

Open
ibot3 opened this issue Aug 17, 2022 · 2 comments
Open

x-display: combobox not working with x-fromUrl #370

ibot3 opened this issue Aug 17, 2022 · 2 comments

Comments

@ibot3
Copy link
Contributor

ibot3 commented Aug 17, 2022

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`,
},
...
@albanm
Copy link
Member

albanm commented Aug 19, 2022

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.

@ibot3
Copy link
Contributor Author

ibot3 commented Aug 19, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants