Describe the bug
This error is visible in browser console when switching between views in the component's demo.
According to the error in the console The error has occurred in the JS code: '$0, window.Vaadin.Flow.fcMarkdownEditorConnector.unobserveThemeChange($0)', this is happeing on the BaseMarkdownComponent#onDetach call.
Expected behavior
No error in browser console.
Minimal reproducible example
Go to https://addonsv24-staging.flowingcode.com/markdown-editor or start the demo locally and then go to the second tab and the error will be visible in the browser console.
Add-on Version
2.0.1-SNAPSHOT
Vaadin Version
24
Additional information
N/A