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

Advanced Select (Remote Data, Tags): Title Mapping #567

Open
akhayyat opened this issue Jan 30, 2025 · 0 comments
Open

Advanced Select (Remote Data, Tags): Title Mapping #567

akhayyat opened this issue Jan 30, 2025 · 0 comments

Comments

@akhayyat
Copy link

Summary

When using advanced select with remote data and tags, mapping the title to a field with another name, e.g. name, results in selected items missing their title.

Steps to Reproduce

  1. Use advanced select widget with remote data and tags
  2. Use apiFieldsMap: { "title": "name }
  3. Use an API that has a name attribute and does not have a title attribute
  4. Select an item. Notice that titles work in the dropdown, but after selecting an item, it loses its title in the input element (selected tags), as shown in the screenshots section.

Note that if the API returns a title attribute, everything works, even if apiFieldsMap.title != "title".

Demo Link

(How to create a demo with remote data? Any guidance?)

Expected Behavior

Setting apiFieldsMap.title to an attribute other than title should not require the API to provide a title attribute.

Actual Behavior

The API must return a title attribute, regardless of how apiFieldsMap.title is set.

Screenshots

Image

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

1 participant