Skip to content

A render loses props, prop provenance, and bindings the spec states #349

Description

@nathanacurtis

Rendering a component and reading it back loses several facts its spec states about the component's API, and adds a few the spec does not. All of them survive independently of the slot content problems tracked in #342 and #345 — they were present before those fixes and are unchanged by them, verified against a round trip taken before the fixes landed.

API facts lost

  • A string prop disappears entirely. A prop declared type: string with an example value is absent from the round trip. Nothing replaces it.
  • A binding is dropped. An element's content bound to a minItems prop reads back with no binding.

Content facts that change

  • The root gains dimensions it never declaredwidth: 100 and height: 100 appear where the source states neither.
  • The root gains an explicit text colourtextColor: "#000000FF", which the source does not state.
  • The root loses clipsContent: true.

Not part of this

Where it was seen

A text input, which is the densest component in the sample: code-only props, paired visibility props, a slot with content, and a subcomponent. Any of the above may well be general rather than specific to it — worth checking a second component before assuming otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clispecs-cli and MCP server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions