Select tag shows nothing selected when v-model variable has a value #7565
-
So I have a variable called client_id and has a value sent with a url parameter, and have a select like this:
the problem is that the select must show the v-model value as selected value, but sometimes it show "Nothing selected" instead |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed with: in the getClientLists function |
Beta Was this translation helpful? Give feedback.
Fixed with:
$('#client-list').selectpicker('val', _this.client_id);
in the getClientLists function