A markdown outline sidebar plugin for Joplin

I just encountered this error after I clicked on an element on the sidebar.
The title contained cross-reference to another note, I think that caused it to crash.

Error
Joplin encountered a fatal error and could not continue.

To report the error, please copy the *entire content* of this page and post it on Joplin forum or GitHub.

If the error persists you may try to restart in safe mode, which will temporarily disable all plugins.

Message
Cannot read properties of undefined (reading 'removeEventListener')

Version info
Joplin for Desktop

Copyright © 2016-2023 Laurent Cozic
Joplin 2.10.19 (prod, win32)

Client ID: 4eb693987a764ec6b6ab43f2f991736b
Sync Version: 3
Profile Version: 42
Keychain Supported: Yes

Revision: 1100ab0

Automatic Backlinks to note: 3.0.3
CodeMirror Line Numbers: 2.0.0
Note Tabs: 1.4.0
Outline: 1.5.10
Plugins
[
    {
        "id": "com.shantanugoel.JoplinCMLineNumbersPlugin",
        "name": "CodeMirror Line Numbers",
        "enabled": false,
        "version": "2.0.0"
    },
    {
        "id": "joplin.plugin.ambrt.backlinksToNote",
        "name": "Automatic Backlinks to note",
        "enabled": true,
        "version": "3.0.3"
    },
    {
        "id": "outline",
        "name": "Outline",
        "enabled": true,
        "version": "1.5.10"
    },
    {
        "id": "joplin.plugin.note.tabs",
        "name": "Note Tabs",
        "enabled": true,
        "version": "1.4.0"
    }
]
Stack trace
TypeError: Cannot read properties of undefined (reading 'removeEventListener')
    at D:\Program Files\Joplin\resources\app.asar\services\plugins\hooks\useSubmitHandler.js:33:38
    at safelyCallDestroy (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:22932:5)
    at commitHookEffectListUnmount (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:23100:11)
    at commitPassiveUnmountInsideDeletedTreeOnFiber (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:25098:11)
    at commitPassiveUnmountEffectsInsideOfDeletedTree_begin (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:25048:5)
    at commitPassiveUnmountEffects_begin (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24956:11)
    at commitPassiveUnmountEffects (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24941:3)
    at flushPassiveEffectsImpl (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:27038:3)
    at flushPassiveEffects (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:26984:14)
    at commitRootImpl (D:\Program Files\Joplin\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:26935:5)
Component stack

    at UserWebview (D:\Program Files\Joplin\resources\app.asar\services\plugins\UserWebview.js:42:28)
    at div
    at I (D:\Program Files\Joplin\resources\app.asar\node_modules\styled-components\dist\styled-components.cjs.js:1:19344)
    at div