Skip to content

Cannot read property 'removeEventListener' of undefined when using resize in nuxt and navigating away #106

@jeffalo

Description

@jeffalo

image

Version

[email protected]
[email protected]

OS

Windows 10, Chrome 90.0.4430.212

Reproduction Link

I am experiencing this error in development, and it also affects the live demo at https://vue-final-modal.org/examples/liveDemo

Steps to reproduce

  1. Make sure resize is true
  2. Open & close modal
  3. Open console
  4. Navigate to another page using the links in the sidebar
  5. You see this error
    image

I think this has something to do with how Nuxt page navigations work, perhaps the modal element no longer exists after navigation? Strangely this only happens when resize is true.

What is Expected?

There are no errors.

What is actually happening?

You see an error (above)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions