antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
550 stars 41 forks source link

[w-autocomplete] Using strings as the value #159

Open andrewapplicantpro opened 2 months ago

andrewapplicantpro commented 2 months ago

There appears to be a bug with w-autocomplete that currently restricts it to working with numbers as the item value. The modelValue is typed as String, Number, Array so I'm assuming it was intended to work with strings too. The modelValue values were being converted to a number during the item list comparison, which meant it would never find the string values due to the strict comparison.