Skip to content

Commit 759934b

Browse files
committed
fix(*): Add container to Popover and Tooltip
1 parent a2f2822 commit 759934b

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/Popover.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const propTypes = {
1212
PropTypes.func,
1313
DOMElement,
1414
]).isRequired,
15+
container: PropTypes.oneOfType([
16+
PropTypes.string,
17+
PropTypes.func,
18+
DOMElement,
19+
]),
1520
isOpen: PropTypes.bool,
1621
disabled: PropTypes.bool,
1722
className: PropTypes.string,
@@ -163,6 +168,7 @@ class Popover extends React.Component {
163168
isOpen={this.props.isOpen}
164169
placement={this.props.placement}
165170
placementPrefix={this.props.placementPrefix}
171+
container={this.props.container}
166172
>
167173
<div {...attributes} className={classes} />
168174
</PopperContent>

src/Tooltip.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const propTypes = {
1212
PropTypes.func,
1313
DOMElement,
1414
]).isRequired,
15+
container: PropTypes.oneOfType([
16+
PropTypes.string,
17+
PropTypes.func,
18+
DOMElement,
19+
]),
1520
isOpen: PropTypes.bool,
1621
disabled: PropTypes.bool,
1722
className: PropTypes.string,
@@ -188,6 +193,7 @@ class Tooltip extends React.Component {
188193
isOpen={this.props.isOpen}
189194
placement={this.props.placement}
190195
placementPrefix={this.props.placementPrefix}
196+
container={this.props.container}
191197
>
192198
<div
193199
{...attributes}

0 commit comments

Comments
 (0)