palantir/blueprint

props.panel.renderPanel is not a function

Open

#5721 opened on Nov 6, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: documentationP1Package: coreType: bughelp wanted

Description

Environment

  • Package version(s): 4.11.6
  • Browser and OS versions: Ubuntu 22.04, Chrome Version 107.0.5304.87 (Official Build) (64-bit)

Question

I am trying to use PanelStack2 with multiple, nested, panel jsx files and am using the props.openPanel() function to open the next panel, which is an imported jsx element, and a console.log(props) shows the function does indeed exist, yet going to the next panel doesn't work, while using the initialPanel object on the state init does work.

What am I doing wrong? Code is mostly from the example, transposed to jsx and attempted to make more modular.

Contributor guide