React-Bootstrap:DOM中的模态但不能在页面上正确显示

时间:2018-02-05 12:00:45

标签: javascript reactjs react-bootstrap

我有一个通过按钮从父组件调用的模态子项,该模态在DOM中查看,并且似乎在页面上运行,但是它没有显示。

以下是父母和孩子的代码:

父: enter image description here

enter image description here

儿童: enter image description here enter image description here

预览(Safari): Modal in DOM but not displaying.

可以在此处找到父组件:

https://github.com/fritz-c/react-sortable-tree

1 个答案:

答案 0 :(得分:1)

我没注意我使用的bootstrap版本。据说react-bootstrap可以在bootstrap 3.3.4或更高版本上运行,但我认为我只会坚持使用3.3.4。