Commit 44b95fe
[1.x] fix(tooltip): resolve native tooltip flash, async teardown leaks, and dynamic text (#4675)
* fix(tooltip): resolve native tooltip flash, async teardown leaks, and dynamic text
This overhauls the Tooltip component to handle dynamic updates properly:
- Initializes tooltip via options `title` instead of `data-original-title`
attribute, removing the native browser tooltip fallback flash.
- Updates `.tooltip-inner` in-place when text dynamically changes to
avoid race conditions with asynchronous teardown.
- Calls `tooltip.show()` after text updates to force recalculation of
absolute coordinates, preventing vertical misalignment.
- Strips `.fade` class immediately during DOM changes to enforce
synchronous cleanup and prevent stranded tooltips.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(admin): blur visibility toggle after click to dismiss tooltip
After toggling announcement visibility, the button retains browser
focus, which keeps the tooltip visible even after the cursor moves
away. Call blur() to release focus and allow the tooltip to dismiss
naturally on mouse-out.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Revert "fix(admin): blur visibility toggle after click to dismiss tooltip"
This reverts commit 0cf01e7.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 86b9c86 commit 44b95fe
1 file changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
189 | 200 | | |
190 | 201 | | |
191 | 202 | | |
| |||
201 | 212 | | |
202 | 213 | | |
203 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
204 | 229 | | |
205 | 230 | | |
206 | 231 | | |
| |||
236 | 261 | | |
237 | 262 | | |
238 | 263 | | |
239 | | - | |
240 | 264 | | |
| 265 | + | |
241 | 266 | | |
242 | 267 | | |
243 | 268 | | |
244 | 269 | | |
| 270 | + | |
245 | 271 | | |
246 | 272 | | |
247 | 273 | | |
| |||
268 | 294 | | |
269 | 295 | | |
270 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
271 | 308 | | |
272 | 309 | | |
273 | 310 | | |
| |||
0 commit comments