You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
####Using tooltip within the modal (e.g. [react-modal](https://github.com/reactjs/react-modal))
94
+
### Using tooltip within the modal (e.g. [react-modal](https://github.com/reactjs/react-modal))
87
95
The component was designed to set a `<Reactooltip />` one place then use tooltip everywhere, but a lot of people stuck in using this component with modal, you can check the discussion [here](https://github.com/wwayne/react-tooltip/issues/130), the summarization of solving the problem is as following:
88
96
89
97
1. Put `<ReactTooltip />` out of the `<Modal>`
90
98
2. Use `React.rebuild()` when opening the modal
91
99
3. If your modal's z-index happens to higher than the tooltip, use the attribute `class` to custom your tooltip's z-index
92
100
101
+
>I suggest always put `<ReactTooltip />` in the Highest level or smart component of Redux, so you might need these static
102
+
method to control tooltip's behaviour in some situations
103
+
93
104
## Article
94
105
[How I insert sass into react component](https://medium.com/@wwayne_me/how-i-insert-sass-into-my-npm-react-component-b46b9811c226#.gi4hxu44a)
0 commit comments