The element accepts a declarative items attribute parsed as JSON. A malformed value is silently swallowed (try/catch with an empty catch in connectedCallback), which makes typos confusing to debug. Log a console.warn with the parse error instead, and add a test asserting the warning fires.
The element accepts a declarative items attribute parsed as JSON. A malformed value is silently swallowed (try/catch with an empty catch in connectedCallback), which makes typos confusing to debug. Log a console.warn with the parse error instead, and add a test asserting the warning fires.