CSLTech / budibase-autocomplete

Budibase Autocomplete Plugin
1 stars 3 forks source link

Label is replaced with id #5

Closed kevin-baumgartner closed 3 months ago

kevin-baumgartner commented 3 months ago

Hello!

I got the plugin to work and it seems to work great! I've run into an issue tho, where instead of the label the id of the selected item is displayed in the component. I suspect that the issue is caused by some kind of mapping as the problem is visible in the logs. Could this be a problem in the implementation of the plugin?

The strange thing is, that after selecting the value, the label is displayed correctly and then it switches to the id. This only happens the first time a value is selected.

image

kevin-baumgartner commented 3 months ago

Found the problem: After selecting a value the search is triggered another time with the selected id. This search fails in my case, cause I only checked for the autocomplete string.