vue-wysiwyg icon indicating copy to clipboard operation
vue-wysiwyg copied to clipboard

Chrome Browser Error due to DOM redraw time

Open Latentimagedesign opened this issue 7 years ago • 0 comments

Chrome Browser throws an error when the text input is created dynamically. I believe this is because it takes a moment for the DOM to be redrawn and the input to become available.

vueWysiwyg.js?5768:1 Uncaught TypeError: Cannot read property 'innerHTML' of undefined at VueComponent.emit (vueWysiwyg.js?5768:1) at VueComponent.boundFn [as emit] (vue.runtime.esm.js?ff9b:191) at VueComponent.eval (vueWysiwyg.js?5768:1) at l (vueWysiwyg.js?5768:1)

Weird error that doesn't actually impact performance. But should probably be fixed.

To recreate have your WYSIWYG component be created off of an if block that renders when clicking a button or something.

Latentimagedesign avatar Mar 11 '18 16:03 Latentimagedesign