From 541d93ff1820693322ccd965b0cf30c1066b01b5 Mon Sep 17 00:00:00 2001 From: Gilad Gray Date: Mon, 10 Jul 2017 19:05:26 +0300 Subject: [PATCH] support top & left arrow offsets at the same time --- src/Popper.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 } } }