Skip to content

Commit

Permalink
Use .system selector to get staff
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed May 2, 2024
1 parent 6ca4866 commit 356eb75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SquareEdit/Grouping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 356eb75

Please sign in to comment.