mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Fix tooltip not appearing/disapearing when attribute is removed
This commit is contained in:
@ -327,7 +327,6 @@ export class IcsCalendar extends inheritHtmlElement("div") {
|
||||
button.classList.remove("text-copied");
|
||||
}
|
||||
button.setAttribute("tooltip", gettext("Link copied"));
|
||||
button.dispatchEvent(new Event("mouseover", { bubbles: true }));
|
||||
navigator.clipboard.writeText(
|
||||
new URL(
|
||||
await makeUrl(calendarCalendarInternal),
|
||||
@ -339,7 +338,6 @@ export class IcsCalendar extends inheritHtmlElement("div") {
|
||||
button.classList.remove("text-copied");
|
||||
button.classList.add("text-copied");
|
||||
button.classList.remove("text-copy");
|
||||
button.dispatchEvent(new Event("mouseout", { bubbles: true }));
|
||||
button.removeAttribute("tooltip");
|
||||
}, 1500);
|
||||
},
|
||||
|
Reference in New Issue
Block a user