Commit f08f85b
authored
TooltipV2: Set the tooltip position when the popover open not when the toggle event is triggered (#4327)
* do not set position if it was set before
* console
* only position set on tooltip show
* remove event listener with the same func signature
* just test
* calculate anchor position after popover-open class is added
* clean up
* comment tidy up
* fix tests
* changeset
* move setting popover auto back in the render
* update snapshots1 parent 69f4489 commit f08f85b
File tree
4 files changed
+29
-27
lines changed- .changeset
- packages/react/src
- TooltipV2
- __tests__
- __snapshots__
4 files changed
+29
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
200 | 216 | | |
201 | 217 | | |
202 | 218 | | |
| |||
239 | 255 | | |
240 | 256 | | |
241 | 257 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 258 | | |
246 | | - | |
247 | 259 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 260 | | |
269 | 261 | | |
270 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1926 | 1926 | | |
1927 | 1927 | | |
1928 | 1928 | | |
| 1929 | + | |
1929 | 1930 | | |
1930 | 1931 | | |
1931 | 1932 | | |
| |||
2920 | 2921 | | |
2921 | 2922 | | |
2922 | 2923 | | |
| 2924 | + | |
2923 | 2925 | | |
2924 | 2926 | | |
2925 | 2927 | | |
| |||
0 commit comments