Skip to content

Element: warn on malformed items JSON #4

Description

@kirthi-b

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions