mirror of
https://github.com/codex-team/editor.js
synced 2024-06-26 09:20:07 +02:00
Update src/components/domIterator.ts
Co-Authored-By: Murod Khaydarov <murod.haydarov@gmail.com>
This commit is contained in:
parent
ba2fe2527d
commit
9661916835
|
@ -97,7 +97,7 @@ export default class DomIterator {
|
|||
*/
|
||||
private leafNodesAndReturnIndex(direction: string): number {
|
||||
/**
|
||||
* if items is empty then there is nothing to leaf
|
||||
* if items are empty then there is nothing to leaf
|
||||
*/
|
||||
if (this.items.length === 0) {
|
||||
return this.cursor;
|
||||
|
|
Loading…
Reference in a new issue