dom-helpers icon indicating copy to clipboard operation
dom-helpers copied to clipboard

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

Open famu1hundred opened this issue 9 years ago • 2 comments

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?

famu1hundred avatar Mar 16 '16 16:03 famu1hundred

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?

jquense avatar Mar 16 '16 16:03 jquense

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

zachbradshaw avatar Dec 15 '16 20:12 zachbradshaw