toast-ui.vue-editor icon indicating copy to clipboard operation
toast-ui.vue-editor copied to clipboard

Error: Cannot read property 'classList' of null when trying to load the editor inside a nested component.

Open oliverseddon opened this issue 4 years ago • 0 comments

Version

2.0.1

Test Environment

Chrome, Mac OS Catalina

Current Behavior

When registering the editor component from within a nested component I get the console error 'Cannot read propertyclassList of null'. The editor loads fine in the parent component, just not the child or grandchild component. The toolbar loads, but no content area.

My structure is as follows:

  1. Page.vue - Editors works as expected 1.1. PageForm.vue - Editor produces classList error 1.1.1. PageFormTextarea.vue - Editor produces classList error

Expected Behavior

I would expect the editor to load for each level of component.

oliverseddon avatar Apr 05 '20 19:04 oliverseddon