js树。选择上下文菜单后的输入字段不出现

js-tree. The input field after choosing a context menu not appear

选择 create/rename/etc 后,输入字段应该出现在任何节点上。

您可以右键单击任何节点。上下文菜单应该出现

  <div id="jstree">
    <!-- in this example the tree is populated from inline HTML -->
    <ul>
      <li>Root node 1
        <ul>
          <li id="child_node_1">Child node 1</li>
          <li>Child node 2</li>
        </ul>
      </li>
      <li>Root node 2</li>
    </ul>
  </div>
  <button>demo button</button>

这是复制品: https://codepen.io/dhika345/pen/PoqPrgo

不知道有 check_callback 属性。添加到核心属性解决了