editor-js / list

Advanced List tool for the Editor.js.
MIT License
48 stars 47 forks source link

fix: getOutOfList editor.js update event not emitted #49

Open DomasB opened 1 year ago

DomasB commented 1 year ago

When usage relies on editor.js events (block added/remove/updated), the behavior when user presses "Enter" on last empty item does not trigger editor.js block updated event. As a result, the last item is removed visually, but no change can be detected externally. Delaying remove current item call solves the issue. The event is emitted and behavior does not change.