Am I doing this wrong? Feat Select2

I have a dynamic table and I’m using Select2 for the select option, since I need the user to type in a tag and when he does I search his tag kinda like a combobox.

The issue is that when I set my placeholder to the value using API Rest to fetch info, the placeholder doesn’t change as if it was not reactive.

Should I do something, like re-render the select2 once I have new data and if so should this.$forceUpdate do the trick?

Im using props as data from the parent component.


It think that the placeholder is only read then creating the select2 and it is really embedded in another component. So it’s not reactive. There is a long discussion here about setting the placeholder dynamically

1 Like