reactstrap/reactstrap

Need modal to render in specific div.

Open

#1,011 建立於 2018年5月9日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (10,557 star) (1,347 fork)batch import
PR Welcomeenhancementhelp wantedup-for-grabs

描述

Issue description

  • components: Modal
  • reactstrap version #5.0.0
  • import method umd/csj/es
  • react version #16.3.2
  • bootstrap version #4.1.0

What is happening?

Rendering in the DOM but at the very end.

What should be happening?

I need the modal to render over a specific div. In non-react bootstrap land I can put a modal in an absolutely positioned element and have it render centered over that div. It seems I cannot specify which div I would like the component rendered in here. Is it possible to change that?

Thinking out loud - it would be awesome to have a prop called 'container' or something like that -- so that the default behavior can be exactly as you have it- but if there is a specified container, the modal lives there.

貢獻者指南