Fix renderGroup type document #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Fix_renderGroup_type_document"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR updates
renderGrouptype document to match it to the implementation.The type doc says it receives
[[MenuElement]]or[MenuElement], but actually it receives only[[MenuElement]].I tried to pass
[MenuElement]to the method, then it ignored the elements. It means it didn't display anything in the menubar.By the way,
menuBarfunction's type doc, which usesrenderGroup, says it only receives[[MenuElement]].github.com/ProseMirror/prosemirror-menu@0fe040dc83/src/menubar.js (L21)If it is an implementation bug, feel free to close this PR.
Thanks for spotting that.