diff --git a/src/js/_enqueues/wp/wp-tooltip.js b/src/js/_enqueues/wp/wp-tooltip.js index 6f5340d3ca032..2a8892cab243b 100644 --- a/src/js/_enqueues/wp/wp-tooltip.js +++ b/src/js/_enqueues/wp/wp-tooltip.js @@ -7,11 +7,11 @@ document.addEventListener('DOMContentLoaded', function () { // Select all tooltip containers on the page - const tooltipContainers = document.querySelectorAll('.tooltip-container'); + var tooltipContainers = document.querySelectorAll('.tooltip-container'); tooltipContainers.forEach(function (tooltipContainer) { - const tooltipButton = tooltipContainer.querySelector('.tooltip-button'); - const tooltipContent = tooltipContainer.querySelector('.tooltip-content'); + var tooltipButton = tooltipContainer.querySelector('.tooltip-button'); + var tooltipContent = tooltipContainer.querySelector('.tooltip-content'); tooltipButton.addEventListener('click', function () { // Toggle the display of the tooltip content