mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-11-23 13:43:35 +08:00
The add handler required selectedId to be set for every kind of node. A DSL with an empty items array leaves selectedId undefined, because updateRoot only fills it from items[0], so clicking add-page in that state threw a bare Error and no page was created. Only require selectedId for regular nodes. Pages and page fragments are attached to the root and need no anchor node. fix #653