Vue-select: [Vue warn]: Error in getter for watcher "filteredOptions": (found in <VSelect>)

Created on 20 Apr 2017  路  7Comments  路  Source: sagalbot/vue-select

Using this component ^2.2.0 I'm getting in the console:

[Vue warn]: Error in getter for watcher "filteredOptions": (found in <VSelect>)

and

TypeError: e.toLowerCase is not a function
    at eval (eval at <anonymous>...)
    at Array.filter (native)
    at VueComponent.filteredOptions
<template>
    <v-select
        class="input-select"
        :options="options"
        v-model="value"
        :searchable="searchable"
        :placeholder="placeholder"
        :on-change="onSelect">
    </v-select>
</template>

Most helpful comment

Thanks, will fix this in the next release. It's only when using an array of integers.

All 7 comments

After further experimentation this only occurs when options is provided with a flat array [5,10,30]. An array of objects (label/value) does not produce any errors.

Thanks, will fix this in the next release. It's only when using an array of integers.

Related to #190.

Is there any fix for this issue as it is still there?
One often wants to pass an array of integers to a select box using just the array values (ie not the indexes). I am using [email protected].

@omarjebari it does not look like there's a fix yet. Just tested in 2.4.0 and it breaks.

Thanks, will fix this in the next release. It's only when using an array of integers.
For me it appeared when I had an array of objects, not just a flat list of integers. But on further debugging, i realised it happened because the first object in that list had something like {id: 1, name: null} (name was null). Took me too long to realize that.
Anyhow, @sagalbot has this issue been fixed yet, as @azzic is saying it is still there?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jluterek picture jluterek  路  3Comments

theseawolves picture theseawolves  路  4Comments

NexoraSolutions picture NexoraSolutions  路  3Comments

xuwenhao picture xuwenhao  路  3Comments

pud1m picture pud1m  路  3Comments