From 17c4e8d81765021275170084b464bd1062f8d9ed Mon Sep 17 00:00:00 2001 From: zorkow Date: Wed, 7 Feb 2024 18:35:56 +0100 Subject: [PATCH] Incorporates review suggestions. --- ts/a11y/explorer.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/a11y/explorer.ts b/ts/a11y/explorer.ts index 6a93ab0d2..a20e77938 100644 --- a/ts/a11y/explorer.ts +++ b/ts/a11y/explorer.ts @@ -123,12 +123,12 @@ export function ExplorerMathItemMixin>( * @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);