summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-07-28 10:03:19 -0400
committerBrian Cully <bjc@spork.org>2025-07-28 10:03:19 -0400
commit531f0b580fbf2b1f19fcc1ad0b29acfbe7606b36 (patch)
treed3d5ea4e095e86543fd40bd8ef7355ed9f87993f
parent636c18b9640733ffab9d9bb35fa7753a7d1903a3 (diff)
downloadchords-531f0b580fbf2b1f19fcc1ad0b29acfbe7606b36.tar.gz
chords-531f0b580fbf2b1f19fcc1ad0b29acfbe7606b36.zip
fix attributelisteners on strings
we write value, and need to care about the tonic's octave
-rw-r--r--string.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.mjs b/string.mjs
index 03cf720..cf9b759 100644
--- a/string.mjs
+++ b/string.mjs
@@ -15,7 +15,7 @@ function dots(i) {
export default class extends HTMLElement {
// TODO: probably not worth observing frets since everything just
// gets re-rendered when they change.
- static observedAttributes = ['frets', 'tonic', 'value'];
+ static observedAttributes = ['frets', 'tonic', 'tonic-octave'];
static name = 'x-string';
static register() {