chmln / vue-wysiwyg

A lightweight WYSIWYG HTML editor for Vue.js
https://chmln.github.io/vue-wysiwyg/
MIT License
555 stars 134 forks source link

Chrome Browser Error due to DOM redraw time #56

Open Latentimagedesign opened 6 years ago

Latentimagedesign commented 6 years ago

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.