Skip to content

Prefilled, readonly text field for const string types #2600

@mmkal

Description

@mmkal

Prerequisites

  • I have read the documentation;
  • [ ] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
  • I'm providing a shared playground link demonstrating the issue.

Description

[Description of the bug or feature]

Steps to Reproduce

  1. Have a schema using { "type": "string", "const": "something" }

Expected behavior

The input should have the const value already filled in, and have readonly=true

Actual behavior

The input is just a regular textbox, and the user has to type the exact value of const manually (without even a hint of what the value should be)

Version

3.2.0

I'd be happy to open a PR to improve this if someone could point me in roughly the right direction.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions