Skip to content

Cannot read properties of null (reading '$connector') on unobserveThemeChange call #20

@paodb

Description

@paodb

Describe the bug

This error is visible in browser console when switching between views in the component's demo.

Image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions