-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefilled, readonly text field for const
string types
#2600
Comments
Same issue, I wonder if we can create a custom widget for it |
@mmkal Are you still willing to fix this? Some refactoring that was done in version 5 should make fixing this fairly simple. There is a new method in |
@heath-freenome sorry I missed this message. I'm not using rjsf at the moment any more, so probably won't do this any time soon. |
Prerequisites
[ ] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.Description
[Description of the bug or feature]
Steps to Reproduce
{ "type": "string", "const": "something" }
Expected behavior
The
input
should have theconst
value already filled in, and havereadonly=true
Actual behavior
The
input
is just a regular textbox, and the user has to type the exact value ofconst
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.
The text was updated successfully, but these errors were encountered: