Skip to content

Commit

Permalink
Incorporates review suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorkow committed Feb 7, 2024
1 parent 7524905 commit 17c4e8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ts/a11y/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ export function ExplorerMathItemMixin<B extends Constructor<HTMLMATHITEM>>(
* @override
*/
public rerender(document: ExplorerMathDocument, start: number = STATE.RERENDER) {
let speech = this.explorers.speech;
if (speech.attached && speech.active) {
const focus = speech.semanticFocus();
this.refocus = focus ? focus.id : null;
}
if (this.explorers) {
let speech = this.explorers.speech;
if (speech && speech.attached && speech.active) {
const focus = speech.semanticFocus();
this.refocus = focus ? focus.id : null;
}
this.explorers.reattach();
}
super.rerender(document, start);
Expand Down

0 comments on commit 17c4e8d

Please sign in to comment.