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.

[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'focus' of undefined"

See original GitHub issue

[Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘focus’ of undefined”

Get this occasionally when I switch between components and reopen a modal. When I reload the page with the modal there is no warning. I’m using:

this.$root.$emit('show::modal', 'my-modal')

and

this.$root.$emit('hide::modal', 'my-modal')

I use 0.15.5. When I downgrade to bootstrap-vue to 0.15.0 there is no warning at all.

Similar issue: https://github.com/bootstrap-vue/bootstrap-vue/issues/19

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
pi0commented, May 8, 2017

(0.15.6 is going to be released in few minutes some changes required 😄)

2reactions
tmorehousecommented, May 8, 2017

This should be available in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - vuejs: Trying to focus the input using v-el directive
I get: Uncaught TypeError: Cannot read property 'txtName' of undefined. This in the "created" method. – geoidesic. Apr 29, 2018 at 21:48.
Read more >
[Vue warn]: Error in nextTick: "TypeError: Cannot read ... - 简书
[Vue warn]: Error in nextTick: "TypeError: Cannot read properties of undefined (reading 'focus')" - 简书
Read more >
error in nexttick: "typeerror: cannot read properties of undefined
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'focus' of undefined" Get this occasionally when I switch between components .
Read more >
Focus management with Vue refs - Learn web development
In order to set focus, we need to understand a little bit more about ... an error raised along the lines of "can't...
Read more >
vue warn error in nexttick typeerror cannot read property ... - 掘金
vue warn error in nexttick typeerror cannot read property 'focus' of undefined ... 双十一,打包半价理解Vue的nextTick与watcher以及Dep的蓝色生死恋? 这段脚本执行 ...
Read more >

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