Missing parameter for MenuCommandSpec.display.render?

Hi, I’m working with v0.3.0 HEAD(#1b6c6) and defining a custom display.render(cmd) function. To call cmd.active(pm) inside the render function I need access to the prosemirror instance.

Should the line in menu.js calling the custom render function dom = disp.render(cmd) be defined as dom = disp.render(pm, cmd) or should I be retrieving the active state in a different way?

Good point. I’ve fixed this in this patch.

1 Like