Skip to content

patternhub: warning on (DOM) properties #2969

Closed
@mfranzke

Description

@mfranzke

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

  • run npm run start
  • you'll recognize two warnings on the console:
> patternhub@0.1.0 compile:04_run
> node generated.js
Warning: Invalid DOM property `for`. Did you mean `htmlFor`?
    at label
    at div
    at DBTagFn (.../showcases/patternhub/generated.js:119002:54)
Warning: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.
    at input
    at label
    at div
    at DBTagFn (.../showcases/patternhub/generated.js:119002:54)

it even also occurs in the pipeline: https://github.com/db-ui/mono/actions/runs/12788207406/job/35649154742?pr=3674#step:10:33

Expected Behaviour

No warnings.

Screenshots

No response

Browser version

None

Add any other context about the problem here.

No response

Metadata

Metadata

Assignees

Labels

🐛bugSomething isn't working

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions