Skip to content

Commit 4344d23

Browse files
authored
Merge pull request #16926 from craftcms/bugfix/cms-16922-tooltip-flicker
Fix tooltip hover flicker
2 parents 022a9eb + 7d0f735 commit 4344d23

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Fixed a bug where Categories and Entries fields with “Maintain hierarchy” enabled were getting all relatable entries/categories selected by default. ([#16925](https://github.com/craftcms/cms/issues/16925))
77
- Fixed a bug where Plain Text and Table fields were converting posted shortcode-looking strings to emoji. ([#12935](https://github.com/craftcms/cms/issues/12935), [#16917](https://github.com/craftcms/cms/issues/16917))
88
- Fixed a bug where relation fields could show relations from another instance of the same field. ([#16912](https://github.com/craftcms/cms/issues/16912))
9+
- Fixed a bug where tooltips could show and hide repeatedly. ([#16922](https://github.com/craftcms/cms/issues/16922))
910

1011
## 5.6.12 - 2025-03-18
1112

src/web/assets/cp/dist/cp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/assets/cp/dist/cp.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/assets/cp/src/js/CraftTooltip.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ class CraftTooltip extends HTMLElement {
250250
};
251251

252252
show = () => {
253+
autoUpdate(this.triggerElement, this.tooltip, this.update);
253254
Object.assign(this.tooltip.style, {
254255
opacity: 1,
255256
transform: ['left', 'right'].includes(this.getStaticSide())
@@ -259,8 +260,6 @@ class CraftTooltip extends HTMLElement {
259260
pointerEvents: 'auto',
260261
zIndex: 101,
261262
});
262-
263-
autoUpdate(this.triggerElement, this.tooltip, this.update);
264263
this.showing = true;
265264
};
266265

0 commit comments

Comments
 (0)