React-popper: `arrowProps.style.left` and `arrowProps.style.top` not updating

Created on 15 Oct 2018  路  3Comments  路  Source: popperjs/react-popper

Reproduction demo


https://codesandbox.io/s/40o490xm5w

Steps to reproduce the problem

  1. console.log(arrowProps.style) within the popper element
  2. resize window or move reference element
  3. arrowProps.style does not update the left or top props

What is the expected behavior?

I'd expect the arrowProps.style.left prop to track the reference element.

What went wrong?

The arrowProps.style.left property does not change or track the element.

Any other comments?

Cross-posted: https://spectrum.chat/thread/2216eaad-b72e-4e12-94d1-25f79d725d61

Thanks!

Packages versions

  • Popper.js: 1.14.4
  • react-popper: 1.0.2

All 3 comments

I answered your question on our spectrum.chat

@FezVrasta I have the same problem, can you post the answer here?

@bbalan - you can follow the chat to see the answer - it's public.

The CSS is wrong, the arrow should have position: absolute, https://codesandbox.io/s/4r6rrqzm9

Was this page helpful?
0 / 5 - 0 ratings

Related issues

souporserious picture souporserious  路  6Comments

vmanchev picture vmanchev  路  7Comments

0xdevalias picture 0xdevalias  路  6Comments

gormonn picture gormonn  路  4Comments

websitesca picture websitesca  路  5Comments