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.
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.