React-tooltip: Anchor position wrong in IE11 when parent container positioned by CSS transform

Created on 21 Nov 2017  路  3Comments  路  Source: wwayne/react-tooltip

In IE11 the anchor of a Tooltip rendered in a container that has any parent that is positioned by CSS transform is wrong. It acts as if the parent was not moved.

Most helpful comment

The problem appears to resolve if the position: fixed style is changed to position:absolute. This style is contained in the .__react_component_tooltip class.

All 3 comments

The problem appears to resolve if the position: fixed style is changed to position:absolute. This style is contained in the .__react_component_tooltip class.

I can confirm that in IE11 some of the examples on the react tooltip example site do not work. In particular those who have a parent with a css transform.

FYI - it appears one solution for this is creating the tooltips outside of the modal, and then in the modal's componentDidMount() method, you call tooltip.rebuild()

Was this page helpful?
0 / 5 - 0 ratings