]> BookStack Code Mirror - bookstack/commit
Lexical: Aligned new empty item behaviour for nested lists
authorDan Brown <redacted>
Tue, 17 Dec 2024 16:50:03 +0000 (16:50 +0000)
committerDan Brown <redacted>
Tue, 17 Dec 2024 16:52:14 +0000 (16:52 +0000)
commitfca8f928a380350a1a6441530a722f4578f8ae14
tree82d4b6e2a6c0e5a140248680da5144f2d53e3101
parentace8af077dfa5173c24cdf8b50eb82ccbd1dbf7e
Lexical: Aligned new empty item behaviour for nested lists

- Makes enter on empty nested list item un-nest instead of just creating
  new list items.
- Also updated existing lists tests to use newer helper setup.
resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts
resources/js/wysiwyg/lexical/list/LexicalListItemNode.ts
resources/js/wysiwyg/lexical/list/__tests__/unit/LexicalListItemNode.test.ts
resources/js/wysiwyg/services/__tests__/keyboard-handling.test.ts
Morty Proxy This is a proxified and sanitized view of the page, visit original site.