Open nishit4777 opened 11 months ago
So to clarify, are you expecting to see "undefined" instead of the "134.xxxxx"?
Also, are you able to reproduce this now? We have since updated the example builder.
Finally, looking at your form json it doesn't look like you are setting the data path to "data". You should also set the item template to display "labels" such as "{{ item.thumbnail.alt_text }}"
Environment:
Steps to Reproduce
Expected behavior
Name Resolution should be proper if the Select Component with a "big list of options" with pagination API is used. Also switching back to tabs the selected value should retain the label name even though if it is not part of initial list.
Observed behavior
The issue what is happening is in default value if you have some data selected which is not part of initial list in the paginated API the label name would not come up. Instead its value is showing.
The same behavior is happening when you have two tabs and select data which is not part of initial list in the paginated API from the tab1 in select component and switch to other tab and come up, switching back to an old tab, name resolution is not proper. Instead of label the value is getting displayed which seems to be very ugly.
Note:
The values here is coming undefined only because the API response doesn't have label attribute. And the value is coming for some field which is not showing the label as it is not part of initial list. The values part of initial list comes as undefined here.
Attaching GIF
Form Json