I've been using version 6.0.2. In a container that I need to add a z-index and some other css properties, all of them get lost after the first interaction (click to open) with the component. Please check this example https://codesandbox.io/s/cocky-morse-bo2dk, and inspect the popover content at the first interaction when it shows up, and then at the second interaction, when it shows up again.
In the example, I have set containerStyle={{ zIndex: 1, overflow: "visible" }}. At the second interaction, the div's style attribute is modified, and the z-index and overflow properties are not there anymore. So, initially, I get the popover content over the other elements on screen, as expected. From the second interaction on, it goes under the elements, since the z-index was removed somehow.
Expected behaviour: the style attribute value should remain the same.
I've been using version 6.0.2. In a container that I need to add a z-index and some other css properties, all of them get lost after the first interaction (click to open) with the component. Please check this example https://codesandbox.io/s/cocky-morse-bo2dk, and inspect the popover content at the first interaction when it shows up, and then at the second interaction, when it shows up again.
In the example, I have set
containerStyle={{ zIndex: 1, overflow: "visible" }}
. At the second interaction, the div's style attribute is modified, and thez-index
andoverflow
properties are not there anymore. So, initially, I get the popover content over the other elements on screen, as expected. From the second interaction on, it goes under the elements, since the z-index was removed somehow.Expected behaviour: the style attribute value should remain the same.