Skip to content

Uncaught Error: Resize must be passed a displayed plot div element. #38

@slaweet

Description

@slaweet

I'm getting this error randomly:

vue-plotly.umd.js?04d1:151220 Uncaught (in promise) Error: Resize must be passed a displayed plot div element.
    at eval (vue-plotly.umd.js?04d1:151220)
    at new Promise (<anonymous>)
    at Object.bb71.plots.resize (vue-plotly.umd.js?04d1:151218)
    at VueComponent.onResize (vue-plotly.umd.js?04d1:210184)
    at EventQueue.eval (vue-plotly.umd.js?04d1:54385)
    at invokeFunc (vue-plotly.umd.js?04d1:208299)
    at trailingEdge (vue-plotly.umd.js?04d1:208346)
    at timerExpired (vue-plotly.umd.js?04d1:208334)

My guess is that it's because

<div :id="id" v-resize:debounce.100="onResize" />

has the debounce and
onResize() {
Plotly.Plots.resize(this.$el);
},

doesn't check if the component wasn't unmounted in the meantime.

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