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 | a49c3370ca3df1de61fa77f111d6a69926293b05 (patch) | |
| tree | 591aaba1a8fab074f043023430233309932ebeb0 /assets | |
| parent | 945d43af779657b4490d6518fc7bd47d7fca111f (diff) | |
refactor: disable tooltip for elements with only title attribute
Former-commit-id: 22b53553b8789d7f6ccf94cc087ae8d3e82c11ac
Diffstat (limited to 'assets')
| -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'); |
