-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
6.0.0-beta.8
Current Behavior
If a patternProperty
with a key length of 1 is introduced, the Form
does not display any input field for the value.
Like this, from the playground:
This applies to all themes.
I opened this issue thinking that keys of length 1 were not handled correctly by the library.
Upon closer inspection and playing around, I realised this is not the case. My keys did not match the regex required by patternProperties
, thus not displaying a value input field.
This is very unintuitive. I would not expect a user to be aware of the regex not matching just by the absence of the value input field (I clearly was not). A proper error should be rendered in the key name field.
Expected Behavior
A value field is rendered no matter the key length.
It should be clear that the key name does not match the patternProperties
regex when such is the case.
Steps To Reproduce
- Go to the playground
patternProperties
example. - Add a new key of length 1, or any key that does not match the
patternProperties
regex. - Observe how the value input field does not get rendered.
- Notice how, as a user, you have no feedback for why the value input field is not rendered.
Environment
Irrelevant
Anything else?
No response