console error fixed
This commit is contained in:
parent
2aeee5bddc
commit
002f45eaf1
22
public/akaunting-js/generalAction.js
vendored
22
public/akaunting-js/generalAction.js
vendored
@ -244,10 +244,13 @@ function runTooltip(tooltipToggleEl) {
|
|||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
// Make the tooltip visible
|
// Make the tooltip visible
|
||||||
tooltipEl.classList.remove("opacity-0");
|
if (tooltipEl.classList.contains("opacity-100", "visible")) {
|
||||||
tooltipEl.classList.add("opacity-100");
|
tooltipEl.classList.remove("opacity-0");
|
||||||
tooltipEl.classList.remove("invisible");
|
tooltipEl.classList.add("opacity-100");
|
||||||
tooltipEl.classList.add("visible"); // Enable the event listeners
|
tooltipEl.classList.remove("invisible");
|
||||||
|
tooltipEl.classList.add("visible");
|
||||||
|
}
|
||||||
|
// Enable the event listeners
|
||||||
|
|
||||||
popperInstance.setOptions((options) => ({
|
popperInstance.setOptions((options) => ({
|
||||||
...options,
|
...options,
|
||||||
@ -265,10 +268,13 @@ function runTooltip(tooltipToggleEl) {
|
|||||||
|
|
||||||
function hide() {
|
function hide() {
|
||||||
// Hide the tooltip
|
// Hide the tooltip
|
||||||
tooltipEl.classList.remove("opacity-100");
|
if (tooltipEl.classList.contains("opacity-100", "visible")) {
|
||||||
tooltipEl.classList.add("opacity-0");
|
tooltipEl.classList.remove("opacity-100");
|
||||||
tooltipEl.classList.remove("visible");
|
tooltipEl.classList.add("opacity-0");
|
||||||
tooltipEl.classList.add("invisible"); // Disable the event listeners
|
tooltipEl.classList.remove("visible");
|
||||||
|
tooltipEl.classList.add("invisible");
|
||||||
|
}
|
||||||
|
// Disable the event listeners
|
||||||
|
|
||||||
popperInstance.setOptions((options) => ({
|
popperInstance.setOptions((options) => ({
|
||||||
...options,
|
...options,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user