Skip to content

[Bug] Slider causes errors on resize when used inside keep-alive #68

@AndrewBogdanovTSS

Description

@AndrewBogdanovTSS

I was able to get this error when using Nuxt page level keep-alive prop, but I get it's also reproducible with a regular vue router.

How to reproduce:

  1. Create an instance of vue-tiny-slider with keep-alive enabled
  2. Change route by navigating to another page
  3. Try to resize the page

AR:
https://take.ms/KhftN

Uncaught TypeError: Cannot read property 'appendChild' of null

ER
Accessing any document level methods should be safe. If document is not available appenChild should not be executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions