When using the composition API, the options may or may not be wrapped in proxy for each object.
I was having a weird issue where the autoscroll feature was not working when the drop-down was opened. The selected value was a proxy, but not the items inside filteredOptions.
This fix uses the toRaw function to compare the raw object and not the Vue proxy object.
When using the composition API, the options may or may not be wrapped in proxy for each object. I was having a weird issue where the autoscroll feature was not working when the drop-down was opened. The selected value was a proxy, but not the items inside filteredOptions.
This fix uses the
toRaw
function to compare the raw object and not the Vue proxy object.