vueform / multiselect

Vue 3 multiselect component with single select, multiselect and tagging options (+Tailwind CSS support).
https://vueform.com
MIT License
807 stars 150 forks source link

Dropdown won't generate using axios #350

Closed justmealf closed 1 year ago

justmealf commented 1 year ago

Hi, i want to generate dropdown from axios but it wont generate it was same as #6 example returning value and label, but it wont generate

axios.get() ........ .then((response) => { console.log(response); console.log(response.data); return response.data.map((item) => { return { value: item.name, label: item.label}; }) }) .catch((error) => { console.log(error) });

adamberecz commented 1 year ago

Please create a reproduction then reopen.