Skip to content

Commit

Permalink
If the orientation dropdown value changes across tabs, get the edit t…
Browse files Browse the repository at this point in the history
…ab board to still match up.
  • Loading branch information
johndoknjas committed Nov 7, 2024
1 parent 9a00c2a commit b41b6fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/analyse/src/study/chapterNewForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit b41b6fb

Please sign in to comment.