diff --git a/src/Popper.jsx b/src/Popper.jsx index 9386bf1..bc88091 100644 --- a/src/Popper.jsx +++ b/src/Popper.jsx @@ -152,11 +152,7 @@ class Popper extends Component { return {} } else { const { top, left } = this.state.data.offsets.arrow - if (!left) { - return { top: +top } - } else { - return { left: +left } - } + return { top: +top, left: +left } } }