Skip to content

Error when clicking on a button inside a Pane that unmount the Splitpanes #236

@clemvnt

Description

@clemvnt

Hello,

I get an error when I click on a button that is in a Pane that "unmounts" the Splitpanes.

The error is the following :

Uncaught TypeError: Cannot read properties of undefined (reading 'index')
    at W (splitpanes.js?v=d160eae9:88:27)
    at createElementBlock.onClick.P.<computed>.P.<computed> (splitpanes.js?v=d160eae9:277:47)
    at callWithErrorHandling (chunk-U3LI7FBV.js?v=59bb505e:2263:19)
    at callWithAsyncErrorHandling (chunk-U3LI7FBV.js?v=59bb505e:2270:17)
    at HTMLDivElement.invoker (chunk-U3LI7FBV.js?v=59bb505e:11202:5)

Reproduction project: https://stackblitz.com/edit/vitejs-vite-lm7mxadg
Splitpanes version : 3.0.1

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