I am currently using React Bootstrap to add Bootstrap React components to my application.
When the user clicks a button, a popup window appears allowing the user to add an item to the list. It looks like this:
When the user enters the input field and clicks "Add", he adds the line to the div in which the button is located. However, since a popover is added at the very end <body>
, a popover does not move as the number of lines increases. It looks like this:
The applicable code is as follows:
<OverlayTrigger trigger="click" placement="top" overlay={this.generatePopover()}>
<Button bsSize="lg"> Add Income Source</Button>
</OverlayTrigger>
where this.generatePopover()
uses the component <Popover>
.