diff --git a/src/modules/Popup/Popup.js b/src/modules/Popup/Popup.js index 4a718c2f29..b4f90b29af 100644 --- a/src/modules/Popup/Popup.js +++ b/src/modules/Popup/Popup.js @@ -228,7 +228,7 @@ export default class Popup extends Component { // Lets detect if the popup is out of the viewport and adjust // the position accordingly - const positions = _.without(POSITIONS, position) + const positions = _.without(POSITIONS, position).push(position) for (let i = 0; !this.isStyleInViewport(style) && i < positions.length; i++) { style = this.computePopupStyle(positions[i]) position = positions[i]