vishaltelangre / editorjs-alert

Editor.js tool for adding colorful alerts/callouts
https://vishaltelangre.github.io/editorjs-alert/examples/demo.html
MIT License
54 stars 18 forks source link

Cannot read properties of undefined (reading 'length') #13

Open calumk opened 2 years ago

calumk commented 2 years ago

It seems to be possible to trigger an error by pressing enter/backspace multiple times, inside the alert block.

Unsure exactly what triggers it, but clicking around, pressing enter and backspace lots seems to do the trick.

editorjs@2.19:6 Uncaught TypeError: Cannot read properties of undefined (reading 'length')

https://user-images.githubusercontent.com/1183991/167632685-aa17c3e3-4a01-4fbb-b4a0-a083c5d970fc.mov

The Issue was first reported on my own plugin, But I think it is from here, or may be from further upstream in the editor itself.

https://github.com/calumk/editorjs-columns/issues/2

vishaltelangre commented 2 years ago

Oh!

I don't have the capacity to look into it right now. Can have a look at it in a few days. But if it is urgent for you and if you are able to fix it, please go ahead and raise a PR.

Thanks for reporting it, BTW!

takming-dormitory commented 5 months ago

I also encountered the same problem