Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
18.0.1
-
None
-
Unknown
-
Description
Follow these steps to reproduce:
- edit an empty page
- insert a quote using the quick action menu
- press enter and add another quote (line)
- select the second quote line and click the "Nest Block" button from the toolbar
- the second quote is nested, but I noticed this error in the JavaScript console:
Object { unexpectedChildrenInBlock: {...} } unexpectedChildrenInBlock: Object { id: "8773ebf6-eb33-4b72-a851-44b3360e73bc", type: "quote", props: {...}, ... } children: Array [ {...} ] content: Array [ {...} ] id: "8773ebf6-eb33-4b72-a851-44b3360e73bc" props: Object { backgroundColor: "default", textColor: "default" } type: "quote" <prototype>: Object { ... } <prototype>: Object { ... } bn-to-uniast.ts:131:17 Uncaught Error: Unexpected children in block type: quote n bn-to-uniast.ts:132 convertBlock bn-to-uniast.ts:240 convertBlocks bn-to-uniast.ts:91 n bn-to-uniast.ts:72 dT index.ts:90 blocksToUniAst bn-to-uniast.ts:72 u c-blocknote-view.vue:102 bn-to-uniast.ts:132:15 n bn-to-uniast.ts:132 convertBlock bn-to-uniast.ts:240 convertBlocks bn-to-uniast.ts:91 n bn-to-uniast.ts:72 dT index.ts:90 blocksToUniAst bn-to-uniast.ts:72 u c-blocknote-view.vue:102 c c-blocknote-view.vue:109 Lodash 5 onChange c-blocknote-view.vue:155 onChange BlockNoteViewWrapper.tsx:340 r blocknote.js:799 emit EventEmitter-CjSwpTbz.js:14 forEach self-hosted:145 emit EventEmitter-CjSwpTbz.js:14 Be blocknote.js:780 emit index.js:2928 forEach self-hosted:145 emit index.js:2928 dispatchTransaction index.js:4985 dispatch index.js:5779 transact blocknote.js:2641 transact blocknote.js:3167 vre blocknote.js:561 nestBlock blocknote.js:743 nestBlock blocknote.js:3488 i React onClick blocknote-mantine.js:135 A4/</</a[f]/< floating-ui.react.mjs:3166 map self-hosted:163 wrapNative prototype.js:1270 f floating-ui.react.mjs:3166 React 11 forEach self-hosted:4110 React 2 BHe index.tsx:42 setup c-blocknote-view.vue:196 lp vue.runtime.esm-browser.prod.js:7 tW vue.runtime.esm-browser.prod.js:5 tK vue.runtime.esm-browser.prod.js:5 __weh vue.runtime.esm-browser.prod.js:7 t4 vue.runtime.esm-browser.prod.js:5 e vue.runtime.esm-browser.prod.js:5 (Async: promise callback) t2 vue.runtime.esm-browser.prod.js:5 t6 vue.runtime.esm-browser.prod.js:5 resolve vue.runtime.esm-browser.prod.js:7 registerDep vue.runtime.esm-browser.prod.js:7 (Async: promise callback) registerDep vue.runtime.esm-browser.prod.js:7 $ vue.runtime.esm-browser.prod.js:7 U vue.runtime.esm-browser.prod.js:7 S vue.runtime.esm-browser.prod.js:7 process vue.runtime.esm-browser.prod.js:7 process vue.runtime.esm-browser.prod.js:7 S vue.runtime.esm-browser.prod.js:7 P vue.runtime.esm-browser.prod.js:7 R vue.runtime.esm-browser.prod.js:7 A vue.runtime.esm-browser.prod.js:7 S vue.runtime.esm-browser.prod.js:7 a vue.runtime.esm-browser.prod.js:7 run vue.runtime.esm-browser.prod.js:5 W vue.runtime.esm-browser.prod.js:7 $ vue.runtime.esm-browser.prod.js:7 U vue.runtime.esm-browser.prod.js:7 S vue.runtime.esm-browser.prod.js:7 er vue.runtime.esm-browser.prod.js:7 mount vue.runtime.esm-browser.prod.js:7 mount vue.runtime.esm-browser.prod.js:7 QHe Logic.ts:79 create Factory.js:42 n inplace.js:51 <anonymous> inplace.js:33 jQuery 3 trigger eventsBridge.js:35 jQuery 2 - try to Save (and continue) => I got the same JavaScript error again and the page hasn't been saved
Attachments
Issue Links
- is related to
-
XWIKI-24011 Fail to edit a quote with multiple child blocks
-
- Open
-