

      function hide() {
        // Hide the tooltip
        tooltip.removeAttribute("data-show");

        // Disable the event listeners
        popperInstance.setOptions({
          modifiers: [{ name: "eventListeners", enabled: false }],
        });
      }

      const showEvents = ["mouseenter", "focus"];
      const hideEvents = ["mouseleave", "blur"];

      showEvents.forEach(event => {
        button.addEventListener(event, show);
      });

      hideEvents.forEach(event => {
