palantir/blueprint

props.panel.renderPanel is not a function

Open

#5,721 创建于 2022年11月6日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
Domain: documentationP1Package: coreType: bughelp wanted

描述

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.

贡献者指南