From b41b6fb751603cd251a2f3f1d9ac7a94b0d98898 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Wed, 6 Nov 2024 20:34:07 -0800 Subject: [PATCH] If the orientation dropdown value changes across tabs, get the edit tab board to still match up. --- ui/analyse/src/study/chapterNewForm.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/analyse/src/study/chapterNewForm.ts b/ui/analyse/src/study/chapterNewForm.ts index c4b21eac87a4c..39fa70cccf33a 100644 --- a/ui/analyse/src/study/chapterNewForm.ts +++ b/ui/analyse/src/study/chapterNewForm.ts @@ -196,7 +196,9 @@ export function view(ctrl: StudyChapterNewForm): VNode { data.embed = true; data.options = { inlineCastling: true, - orientation: currentChapter.setup.orientation, + orientation: + ((document.getElementById('chapter-orientation') as HTMLSelectElement) + ?.value as Color) || currentChapter.setup.orientation, onChange: ctrl.editorFen, coordinates: true, };