Skip to content

Commit

Permalink
fix(esl-footnotes): fix improper note highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Nov 13, 2024
1 parent daeb266 commit c7c3d1c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modules/esl-footnotes/core/esl-note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ export class ESLNote extends ESLBaseTrigger {
if (!this.isTargetActive) this._$footnotes?.turnOffHighlight(this);
}

/** Handles ESLNote state change */
@listen({
event: 'esl:before:show',
target: (that: ESLNote) => that.$target
})
protected _onBeforeTargetShow(): void {
if (this.isTargetActive) this._$footnotes?.turnOffHighlight(this);
}

/** Sends the response to footnotes */
protected _sendResponseToFootnote(): void {
this.$$fire(this.FOOTNOTE_RESPONSE_EVENT);
Expand Down

0 comments on commit c7c3d1c

Please sign in to comment.