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

[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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

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

This should be available in the next release.

Thanks, That gives me a few ideas as to which situations to check for the issue.

Correct