mirror of
https://github.com/wassname/template.git
synced 2026-07-24 13:20:06 +08:00
Fix infinite loop when no citations were present
This commit is contained in:
@@ -72,6 +72,12 @@ export class Cite extends T(HTMLElement) {
|
||||
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
const options = { detail: [this, this.keys], bubbles: true };
|
||||
const event = new CustomEvent('onCiteKeyRemoved', options);
|
||||
document.dispatchEvent(event);
|
||||
}
|
||||
|
||||
/* Observed Attributes */
|
||||
|
||||
// renderCitationNumbers(citations) {
|
||||
|
||||
Reference in New Issue
Block a user