Describe the bug
When you open one of the preview's code editor, and then open another one in the same page, if you tries to close/toggle off any of them, the CodeMirror editor instance will not be properly destroyed.
To Reproduce
Steps to reproduce the behavior:
- Open any of the component's documentation page
- Toggle one of the preview's HTML + CSS editor on
- Do that for another one
- And then toggle one of them off
You will see that the code editor will not be destroyed properly.
Expected behavior
The code editor instance should be destroyed properly.
Describe the bug
When you open one of the preview's code editor, and then open another one in the same page, if you tries to close/toggle off any of them, the CodeMirror editor instance will not be properly destroyed.
To Reproduce
Steps to reproduce the behavior:
You will see that the code editor will not be destroyed properly.
Expected behavior
The code editor instance should be destroyed properly.