Skip to content

If ChartJS animation is disabled, this plugin crashes my web app #36

Description

@kalnode

My web app (Nuxt) crashes when using this plugin (v2.0.0) and disabling ChartJS (v4.4.7) animations.

FAILS (A) - my nuxt web app crashes with a 500 error:

(ChartJS instance)

options: {
    // ...
    plugins: {
        deferred: {
            xOffset: 150,
            yOffset: '50%',
            delay: 500
        }
    },
    // ...
    animation: false, // Animations are disabled via this ChartJS option
    // ...
}

WORKS (B) - The app works like normal if not disabled animation

options: {
    // ...
    plugins: {
        deferred: {
            xOffset: 150,
            yOffset: '50%',
            delay: 500
        }
    },
    // ...
}

WORKS (C) - The app works like normal if I exclude this plugin and disable animations

options: {
    // ...
    animation: false, // ChartJS option that toggles animations
    // ...
}

Maybe I'm overlooking something but it seems like this plugin doesn't first detect whether ChartJS animations are disabled, before running more logic (case A).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions