diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-27 10:08:21 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-27 10:08:21 +0800 |
| commit | 22b53553b8789d7f6ccf94cc087ae8d3e82c11ac (patch) | |
| tree | 591aaba1a8fab074f043023430233309932ebeb0 | |
| parent | 9cf7dc195d504a520e815ca441dc3d567e998923 (diff) | |
refactor: disable tooltip for elements with only title attribute
| -rw-r--r-- | assets/js/tooltip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/tooltip.js b/assets/js/tooltip.js index c90658a2..eea5b350 100644 --- a/assets/js/tooltip.js +++ b/assets/js/tooltip.js @@ -1,5 +1,5 @@ (() => { - const allTooltipped = document.querySelectorAll('[data-tooltip], [title]'); + const allTooltipped = document.querySelectorAll('[data-tooltip]'); const createOrUpdateTooltip = (element) => { const tooltipText = element.getAttribute('data-tooltip') || element.getAttribute('title'); |
