question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v2.0.0-beta13 - Cannot read property 'isLabel' when tab out.

See original GitHub issue

So far everything appears to be working, but when I tab out of the multiselect I get the following in the console. It doesn’t appear if I click out of the multiselect, only on tab out.

vue-multiselect.min.js?6cfa:1 Uncaught TypeError: Cannot read property 'isLabel' of undefined
    at VueComponent.addPointerElement (eval at <anonymous> (app.js:803), <anonymous>:1:7053)
    at Proxy.boundFn (eval at <anonymous> (app.js:948), <anonymous>:130:14)
    at Array.eval (eval at <anonymous> (app.js:803), <anonymous>:1:18096)
    at HTMLInputElement.eval (eval at <anonymous> (app.js:948), <anonymous>:2214:22)

My component:

<multiselect v-model="value"
    :options="options"
    :multiple="true"
    :close-on-select="false"
    :hide-selected="true"
    placeholder="Add Additional Members">
</multiselect>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shentaocommented, Dec 30, 2016

Interesting! Thanks for letting me know! Will try to fix this early January.

0reactions
garrettheavercommented, Feb 27, 2017

Think this may have introduced a different issue. I was wondering why the “isLabel” error had gone but is replaced by

TypeError: Cannot read property ‘id’ of null at http://localhost:8080/app.js:47334:3556 at Array.map (native) at VueComponent.valueKeys (http://localhost:8080/app.js:47334:3532)

I see valueKeys does a map on internalValue which in turn uses this.value in data(), value also has a watcher which does a deepClone on it. When value=null this is going to cause an issue because we’ve not got [null] as the value. If I get a chance I’ll put together a quick PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found