Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot set property top of #<ClientRect> which has only a getter #6

Open
famu1hundred opened this issue Mar 16, 2016 · 2 comments

Comments

@famu1hundred
Copy link

Using react-bootstrap 0.28.3...an OverlayTrigger with Popover content is causing the above error. Not sure why, maybe because the DOM element the Overlay is bound to is absolutely positioned. The Popover does not appear and is not present in the DOM

Commenting out these two lines in position.js resolves the issue but not sure it's a real fix

parentOffset.top += parseInt((0, _style2['default'])(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2['default'])(offsetParent) || 0;
parentOffset.left += parseInt((0, _style2['default'])(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2['default'])(offsetParent) || 0

Also if we remove the container prop for {this} from the OveralyTrigger, the Popover appears but is not positioned properly.

Any ideas?

@jquense
Copy link
Member

jquense commented Mar 16, 2016

that's a weird one... what are your env details? and from those two lines can you narrow it down further to which thing specifically is throwing?

@zachbradshaw
Copy link

Any update on this? Also seeing this same error on react-bootstrap 0.29.4. Seen in FF and Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants