diff --git a/src/SquareEdit/Grouping.ts b/src/SquareEdit/Grouping.ts index 0220184a..9c39633e 100644 --- a/src/SquareEdit/Grouping.ts +++ b/src/SquareEdit/Grouping.ts @@ -477,9 +477,9 @@ function toggleLinkedSyllables() { // Associate syllables. Will need to find which is first. Use staves. const syllable0 = document.getElementById(elementIds[0]); const syllable1 = document.getElementById(elementIds[1]); - const staff0 = syllable0.closest('.staff'); - const staff1 = syllable1.closest('.staff'); - const staffChildren = Array.from(staff0.parentElement.children).filter((elem: HTMLElement) => elem.classList.contains('staff')); + const staff0 = syllable0.closest('.system'); + const staff1 = syllable1.closest('.system'); + const staffChildren = Array.from(staff0.parentElement.children).filter((elem: HTMLElement) => elem.classList.contains('system')); let firstSyllable, secondSyllable; // Determine first syllable comes first by staff