From a49c3370ca3df1de61fa77f111d6a69926293b05 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 27 Jul 2025 10:08:21 +0800 Subject: refactor: disable tooltip for elements with only title attribute Former-commit-id: 22b53553b8789d7f6ccf94cc087ae8d3e82c11ac --- assets/js/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') 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'); -- cgit v1.2.3